sbc_compliant: (Default)
[personal profile] sbc_compliant
today's two examples:

  • 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.

Profile

sbc_compliant: (Default)
sbc_compliant

November 2019

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 10th, 2026 06:35 am
Powered by Dreamwidth Studios