If that command accepts multiple arguments it would be more efficient when run like this:
Code:
vmchange -m N0001 N0002 ... N000n
So, if your shell supports brace expansion (ksh93, zsh, bash >=3.0)
and process substitution:
Code:
xargs vmchange -m < <(printf "N%04d\n" {1..100})
If the command does not accept multiple arguments:
Code:
printf "vmchange -m N%04d\n" {1..100}|sh
Or just use a more powerful tool:
Code:
perl -le'system sprintf "vmchange -m N%04d\n",$_ for 1..100'