where

Find file extension and sort by size – wheres wally script?

Find a file by extension and sort by size

Just written a little script to find files by the file extension and show the output by size order. It works with 2 human inputs needed – the location where to search and the file extension e.g. /home/linuxgalaxy and zip. I had the need for this script as I have be manually looking for zip files across servers to see what I can delete so best to put the commands in a script. I’ve awk-ed the output so to only show size and location which is then piped to sort in reverse order.

 


Leave a Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>