commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
You define your variable MYVAR with the desired search pattern:
...which can then be searched with the find command.
This is useful if you in a script, where you want the arguments to be fed into the find command.
The provided search is case insensitive (-iname) and will find all files and directories with the pattern MYVAR (not exact matches). This may go without saying, but if you want exact matches remove the \* and if you want case sensitive, use the -name argument.
There is 1 alternative - vote for the best!
This works fine too.
If you can do better, submit your command here.
You must be signed in to comment.