To customize my bash user experience, is there a way to use .bashrc to recall common command sets. For example I found this set of commands to find a search string in text files,
find /directory -type f -print0 | xargs -0 grep -i 'search string'
I'd like to be able to recall this with a custom alias like `grepfindfile and then view the above command set displayed in bash the same way the last command is pulled from history.
Or would I have to create some sort of bash script? Like bashrc files, do command line users share their productivity scripts? What are they called? My favorite bash widgets?
CF. Same type of problem asked here for VIM How do I create a shortcut for a find and replace command in vim?