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