all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
3
Task/Truncate-a-file/UNIX-Shell/truncate-a-file-1.sh
Normal file
3
Task/Truncate-a-file/UNIX-Shell/truncate-a-file-1.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Truncate a file named "myfile" to 1440 kilobytes.
|
||||
ls myfile >/dev/null &&
|
||||
dd if=/dev/null of=myfile bs=1 seek=1440k
|
||||
2
Task/Truncate-a-file/UNIX-Shell/truncate-a-file-2.sh
Normal file
2
Task/Truncate-a-file/UNIX-Shell/truncate-a-file-2.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Truncate a file named "myfile" to 1440 kilobytes.
|
||||
truncate -s 1440k myfile
|
||||
Loading…
Add table
Add a link
Reference in a new issue