Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # find something in first line, outputs filepath and file
  4. find . -type f -exec sh -c "if head -n 1 {} | grep 'firrst row text' > /dev/null; then echo {}; cat {}; fi; " \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement