RosettaCodeData/Task/Truncate-a-file/UNIX-Shell/truncate-a-file-1.sh
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

3 lines
120 B
Bash

# Truncate a file named "myfile" to 1440 kilobytes.
ls myfile >/dev/null &&
dd if=/dev/null of=myfile bs=1 seek=1440k