How to display a file name which has zero bytes in size.

Answer Posted / akula

ls -ltr | grep "^-" | sort -nk5 | head -1
or
ls -ltr | grep "^-" | sort -nk5 | head -1 | awk '{ print $9 }'

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between cat and more command?

627


Who invented grep?

654


What does #!/ Bin sh do?

595


What is the use of find command in unix?

588


Does cp command overwrite files?

626






How do I search for text in vi?

588


What is the difference between grep and grep?

569


How does the system know where one command ends and another begins?

1582


How do you grep recursively?

557


What is the command to find hidden files in the current directory?

587


How do I clear my terminal history?

588


What is awk good for?

589


what is the advaantage of each user having its own copy of the shell?

2038


What is the use of sed command in unix?

601


What does grep v do?

562