Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

null

Are shells allowed to ignore NUL bytes in scripts?

by IT Nursery

The reason for this behavior is a bit complex… First, modern shells include a check for potentially binary files (that contain null bytes), … Read more

Tags bash, dash, null, shell

Remove null bytes from the end of a large file

by IT Nursery

You can write a simple tool to solve this problem. Read the file, find out the last valid byte(not null), then truncate the … Read more

Tags dd, files, null

Are there “esoteric” (weird) but standards-compliant C compilers or runtimes?

by IT Nursery

So, is there a unix variant or unix inspired platform, (or a compiler if it is mostly up to the compiler?) which is … Read more

Tags c, null, posix, segmentation-fault, standard

How to prevent word splitting without preventing empty string removal?

by IT Nursery

In bash and shells with similar array support you can do the following: # default is an empty array param=() # if $var … Read more

Tags bash, null, parameter

Using binary data as a parameter in bash – any way to allow nuls?

by IT Nursery

bash is not best suited to handle binary data directly. Either use the binary data with a file, either use the hexadecimal string … Read more

Tags bash, binary, command-substitution, null

Using/reading/writing the null and escape characters

by IT Nursery

Single/double quotes vs. backslash: single quotes and backslashes are equivalent in quoting power. It’s a lot more convenient to use single quotes to … Read more

Tags bash, escape-characters, filenames, null, shell

Send null byte in unix pipe

by IT Nursery

Send null byte in unix pipe

Tags bash, io-redirection, null

Null object in Python

by IT Nursery

In Python, the ‘null’ object is the singleton None. To check if something is None, use the is identity operator: if foo is … Read more

Tags null, object, python

Create virtual block device which writes to /dev/null

by IT Nursery

If you don’t need it to have a specific limited size, you can just use /dev/zero directly. Technically it’s a character device, not … Read more

Tags block-device, linux, networking, null

How do I check for an empty/undefined/null string in JavaScript?

by IT Nursery

How do I check for an empty/undefined/null string in JavaScript?

Tags is-empty, javascript, null
Older posts
Page1 Page2 … Page18 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery