dotfiles/.local/bin/scripts/grpf

4 lines
192 B
Plaintext
Raw Normal View History

2021-09-20 06:57:20 +00:00
#!/bin/sh
# Grep in files matching the name pattern given as first argument
find -name "$1" | while read f; do grep --color=always --line-number --ignore-case -H "${@:2}" "$f"; done | less -F