dotfiles/.local/bin/scripts/grpf

4 lines
205 B
Text
Raw Normal View History

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