I'm trying to figure out how to do a command to multiple items. For example:
mycommmand fileA; mycommand fileB; mycommand fileC;
I can do it like this:
files=(fileA fileB fileC) for fl in $files; mycommand $fl
When I try to inline this it fails:
$for fl in (fileA fileB fileC); echo $fl zsh: invalid mode specification
Is this possible in zsh? I scanned through the manual on arrays but it didn't mention how to do this.