function findstr if test (count $argv) -lt 1 echo "Usage: findstr " return 1 end set query $argv[1] find . -type f -exec grep -Hn "$query" {} \; end