You can get as many NULL bytes as you want from /dev/zero. You can then turn these into other characters. The following prints 16 lowercase a’s
head -c 16 < /dev/zero | tr '\0' '\141'
More Related Contents:
- Replace a string in shell script using a variable
- How to delete duplicate lines in a file without sorting it in Unix
- Identifying and removing null characters in UNIX
- Why do shell script comparisons often use x$VAR = xyes?
- Is there a Unix utility to prepend timestamps to stdin?
- Use grep –exclude/–include syntax to not grep through certain files
- Is PowerShell ready to replace my Cygwin shell on Windows? [closed]
- How do I set $PATH such that `ssh user@host command` works?
- How to do a mass rename?
- Date arithmetic in Unix shell scripts
- How do I manipulate $PATH elements in shell scripts?
- What is the general syntax of a Unix shell command?
- Convert decimal to hexadecimal in UNIX shell script
- unix command line execute with . (dot) vs. without
- Diff files present in two different directories
- How do I change a shell scripts character encoding?
- In a unix shell, how to get yesterday’s date into a variable?
- Shell script “for” loop syntax
- What does 2>&1 mean here?
- Bash command line and input limit
- Why does my tool output overwrite itself and how do I fix it?
- OS X / Linux: pipe into two processes?
- What is the difference between “source script.sh” and “./script.sh”?
- Why always ./configure; make; make install; as 3 separate steps?
- How to strip leading “./” in unix “find”?
- Print a file’s last modified date in Bash
- Display filename before matching line
- How to add text at the end of each line in unix
- How to print 5 consecutive lines after a pattern in file using awk [duplicate]
- Subtract two variables in Bash