My idea is to create an alias or command who runs this:
grep -A32 -B9 (text) (file)
So it will bring me 32 lines AFTER the text I grep and 9 lines BEFORE
the grep search on the file xxxxxx
Now, the idea is to create an alias (or command) with the name
"gime" who execute the command above, so I only need to write:
%:gime (text)
Can I specify it as an alias or need it be a command, if so, how can i create it
on bash
Something like this ?
#!/usr/local/bin/bash
grep -A32 -B9 $1 myfile
And save it as "gime" ?
Thanks a lot for your help.
Don“t freak out until you know the facts...Relax...!