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
What is the difference between cat and more command?
Who invented grep?
What does #!/ Bin sh do?
What is the use of find command in unix?
Does cp command overwrite files?
How do I search for text in vi?
What is the difference between grep and grep?
How does the system know where one command ends and another begins?
How do you grep recursively?
What is the command to find hidden files in the current directory?
How do I clear my terminal history?
What is awk good for?
what is the advaantage of each user having its own copy of the shell?
What is the use of sed command in unix?
What does grep v do?