Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In my /Scripts directory I'm trying to read all scripts where I'm calling "grep". The command I'm using is:
- locate Scripts | grep \.sh | grep -rinHo "grep"
- but this is giving me trash.
- How do I make sure only .sh scripts are read?
- OMR
- Also tried:
- locate /Scripts | grep \.sh | grep -rinHo "grep"
- locate /Scripts | grep *.sh | grep -rinHo "grep"
- locate /Scripts | grep *\.sh | grep -rinHo "grep"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement