How To: Use ‘find’ to List .iso files in a Directory.

Using The Linux Find Command:

this link (which will save me the time of repeating it). Seriously, read it. It’s well worth the read.

So, how did we get here?

[code]ls -la | grep iso[/code]

I could have output them to a handy text file for storage with:

find‘ command. Using ‘find’ is a bit more complex, but it’s worth learning how to use it.

cpio‘, which oddly didn’t appear in Unix until Version 7. The cpio was all about archiving and actually still exists though you’ve probably never used it.

I wanted to list the .iso files in the directory and so I ended up with this command:

-iname 
awk‘ and ‘putting it all together‘. You just need to use a pipe and then ‘wc -l’. So, that command would look like: