The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 of 3 edited tags; edited tags

Why does a file move/copy function only move one file at a time when using the “*” wildcard?

function mv1 { mv -n $1 "targetdir" -v |wc -l ;}
mv1 *.png

It does only move the first .png file it finds, not all of them.

How can I make the command apply to all files that match the wildcards?