diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-03-25 15:30:51 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-03-25 15:30:51 +1300 |
commit | 2cbd0834c2787a7bb32673c5ade30ebddf3bcce8 (patch) | |
tree | 98a419013116e9859fbd7ae0ef2380c03aac2b5a | |
parent | Who knows, could be useful for somebody else (diff) | |
download | mgrep-2cbd0834c2787a7bb32673c5ade30ebddf3bcce8.tar.gz mgrep-2cbd0834c2787a7bb32673c5ade30ebddf3bcce8.zip |
Always show full path in output
-rwxr-xr-x | mgrep | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -94,13 +94,9 @@ if [[ -e $exclude ]] ; then done < "$exclude" fi -# Try to change into the path for find(1). This is just to prevent long -# prefixes in the output of `grep -h`. -cd -- "$path" || exit - # Run the find(1) command with its determined arguments, with an -exec option # calling grep(1) with its determined arguments. -find ./* \ +find "$path" \ -type f \ "${find_args[@]}" \ -exec \ |