After fighting with the find command for quite a while yesterday, and trying to figure out it's regular expression parsing engine, one of my co-workers just let me in on a very useful function of find. You can specify multiple "-name" options on a command line if you seperate them with a "-o". For example, if you want to find all the files on your system named kids.txt and money.txt, you could issue the following command,
find / -name kids.txt -o -name money.txt
Pretty handy. Hope this helps you out if you are ever in this situation!
The Hammer Hack
-
Who doesn’t love a hack? A hack. A clever bit of knowledge that, when used,
provides disproportionate return on investment. The fact that it costs you
litt...
1 week ago
No comments:
Post a Comment