Tuesday, March 15, 2016

Find, grep and pipe to Vim

find | grep -i "oracle.*\.c" | xargs sh -c '</dev/tty vim "$@"' ignoreme


fvi ()
{
    find . -type f | grep -i $@ | xargs -I{} sh -c '</dev/tty vim "$@"' ignoreme -- {}
}

No comments:

Blog Archive