On Wed, 14 May 2008, David C. Rankin wrote:-
[11:38 nirvana/home/samba/computer/linux/apps] # mv { c* k* K* p* sim- 0.9.4.3.tar.bz2 trix-0.93.tar.bz2 xca-0.6.4.tar.gz } desktop/
It all worked, but I got this error:
mv: cannot stat `{': No such file or directory mv: cannot stat `}': No such file or directory
Which makes sense because I didn't want the braces as directories only as list enclosures. How do I do it so I can eliminate the brace error?
You're adding spaces between the items in the list, instead of using commas. To do what you wanted, you should have used: mv {c*,k*,K*,p*,sim-0.9.4.3.tar.bz2,trix-0.93.tar.bz2,xca-0.6.4.tar.gz} desktop/ and even that could be reduced to: mv {c,k,K,p}* {sim-0.9.4.3,trix-0.93}.tar.bz2 xca-0.6.4.tar.gz desktop/ Both of which would expand to the command that you actually executed: mv c* k* K* p* sim-0.9.4.3.tar.bz2 trix-0.93.tar.bz2 xca-0.6.4.tar.gz desktop/ But without the curly braces. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit | openSUSE 11.0b1 SUSE 10.1 64bit | openSUSE 10.2 64bit | openSUSE 10.3 64bit RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org