Computer Science, asked by KMANISH9607, 1 year ago

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 jaydenjeswinraj
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