Advertisement
wavec022

bashrc findit

Aug 26th, 2021
1,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. # Add this to ~/.bashrc to make "findit" like in CS481
  2.  
  3. function findit() {
  4.     find . -type f -name "*.c" -o -name "*.h" -o -name "*.S" | xargs grep $1
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement