11 lines
198 B
Fish
11 lines
198 B
Fish
function findstr
|
|
if test (count $argv) -lt 1
|
|
echo "Usage: findstr <search-string>"
|
|
return 1
|
|
end
|
|
|
|
set query $argv[1]
|
|
|
|
find . -type f -exec grep -Hn "$query" {} \;
|
|
end
|