[OT] Argument list too long

Thomas Kaiser (ubuntu) ubuntu at kaiser-linux.li
Fri Aug 12 17:05:57 UTC 2005


Hello All

It looks like I sent the wrong mail :-). See this:


cp -r /media/nethd/Sound/a* /media/Sound/


I tried this and it works.

Can I do something like (pseudo code):
foreach (abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789)
  cp -r /media/nethd/Sound/$_* /media/Sound/
next

I am not a bash programmer but I heard/read that you can do stuff like 
this in the batch

Regards, Thomas

> -- 



http://www.kaiser-linux.li




-- 
http://www.kaiser-linux.li



-- 
http://www.kaiser-linux.li





More information about the ubuntu-users mailing list