Is there such a thing as inline bash scripts?

bash, shell

Solution

There's no need for xargs here

`find -name *.mk -exec mv {} {}.aside \;`

Problem

I want to do something on the lines of: ``` find -name *.mk | xargs "for i in $@ do mv i i.aside end" ``` I realize that there might be more than on error in this, but I'd like to specifically know about this sort of inline command definition that I can pass xargs to.

Original source