How do I create an alias where the arguments go in the middle? [duplicate] June 12, 2023 by Tarik Try defining a function in ~/.profile. function greplogs(){ grep "$1" */logs/*.log }