Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # find something in first line, outputs filepath and file
- 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