Lets say i have this search term:
grep -i -r --include=*.xib "img_28301.png" ./
how would i go about creating an alias that allows me to do this:
xibsearch img_28301.png
and do the same thing?
It will be much cleaner to have a function for this:
xibsearch() {
grep -i -r --include=*.xib "$1" ./
}
As alias doesn't support positional parameters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With