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).
Answers
Answered by
0
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 / Ubuntu
Explanation:
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
Similar questions
Biology,
7 months ago
History,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Chemistry,
1 year ago