There are many ways to solve this problem. Most involve piping commands through other commands, or looping through files in a script. I’ve found the most effective solution for my purposes is piping ls or find trough xargs . Here are some examples: