Advertisement
linuxlizard

find functions

Jul 17th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. find
  2.  
  3. findc () { find ${1:-.} -name '*.c'; }
  4. findh () { find ${1:-.} -name '*.h'; }
  5. findf () { find ${1:-.} -type f; }
  6. findm () { find . -name Makefile -o -name makefile -o -name '*.mk'; }
  7.  
  8. function lk () { ls -lrt $@ | tail; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement