langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
2
Task/File-size/UNIX-Shell/file-size-1.sh
Normal file
2
Task/File-size/UNIX-Shell/file-size-1.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
size1=$(ls -l input.txt | tr -s ' ' | cut -d ' ' -f 5)
|
||||
size2=$(ls -l /input.txt | tr -s ' ' | cut -d ' ' -f 5)
|
||||
2
Task/File-size/UNIX-Shell/file-size-2.sh
Normal file
2
Task/File-size/UNIX-Shell/file-size-2.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
size1=$(wc -c < input.txt | tr -d ' ')
|
||||
size2=$(wc -c < /input.txt | tr -d ' ')
|
||||
2
Task/File-size/UNIX-Shell/file-size-3.sh
Normal file
2
Task/File-size/UNIX-Shell/file-size-3.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
size1=$(stat -f %z input.txt)
|
||||
size2=$(stat -f %z /input.txt)
|
||||
5
Task/File-size/UNIX-Shell/file-size-4.sh
Normal file
5
Task/File-size/UNIX-Shell/file-size-4.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# from module 'zsh/stat', load builtin 'zstat'
|
||||
zmodload -F zsh/stat b:zstat
|
||||
|
||||
size1=$(zstat +size input.txt)
|
||||
size2=$(zstat +size /input.txt)
|
||||
Loading…
Add table
Add a link
Reference in a new issue