code:
#!/bin/bashif [ "$1" != "" ]; then echo 'path to search: ' $1 echo 'Search for: ' $2 grep -H -r --color -E "$2" $1 else echo "sfind <path> <word> " fi
Save to file in /usr/bin/>filenam>
chmod a+x <filename>
I use sfind for filename
code:
#!/bin/bashif [ "$1" != "" ]; then echo 'path to search: ' $1 echo 'Search for: ' $2 grep -H -r --color -E "$2" $1 else echo "sfind <path> <word> " fi
Save to file in /usr/bin/>filenam>
chmod a+x <filename>
I use sfind for filename
Comments
Post a Comment