I can use /dev/zero
or /dev/urandom
to write values into a file. Is there also a way to write an unlimited amount (just restricted by a command line switch maybe) of defined numbers (e.g. 1
, 2
, etc.) into a file?
I know about echo "1" > file
but I need moooore!
The file should contain the same string value repeated without newlines. Ideally I could write bit test patterns like 0xAA
or 0x55
, but I guess I can manage that myself once I know how to write one value.
seq 1 100000000000
– 123 Jul 14 '16 at 12:44