Any bash gurus know how to turn the commands below into a one liner?
trutch:$ touch app/views/pages/_sponsors.html.erb
trutch:$ touch app/views/pages/_donations.html.erb
trutch:$ touch app/views/pages/_volunteers.html.erb
I would like to be able to do something like this:
trutch:$ touch app/views/pages/[ARRAY].html.erb
If you have any sources for bash tricks such as this it would be appreciated as well.
Best Answer
Simple bash lists can be used for this:
Have a look at Bash One-Liners for tips, but the man page is also pretty detailed.