backticks are the shizzle
Dec. 20th, 2006 03:57 pmtoday's two examples:
Awesome.
- I wanted to find all the instances of "foo" that had "bar" in the path, plus find out whether they were files or directories
ls -las `locate foo | grep bar` - Then I wanted to find all the instances of "blah" within the files that I found from the above example
grep blah `locate foo | grep bar`
Awesome.