1.

Write a shell script to list name and size of all files in a directory whose size is exceeding 1000 bytes (directory name is to be supplied as an argument to the shell script).

Answer»

Code for Write a shell script, which reports names and sizes of all files in a directory whose size is EXCEEDING 1000 bytes in Unix / LINUX / UbuntuExplanation:ls -l | CUT -c 31-48,56- > b1 tr -s ' ' < b1 >b2 grep "^ [7-9][0-9][0-9]." b2 | sort -rn --------------------------------------------------------------------------------output: $ SH24 751 Nov ans52.sh



Discussion

No Comment Found