May be for copy all but one: mv not_this_one ~/tmp && cp * /dist_folder && mv ~/tmp/not_this_one .
[EMAIL PROTECTED] yankl]$ mkdir test [EMAIL PROTECTED] yankl]$ cd test [EMAIL PROTECTED] yankl]$ mkdir temp [EMAIL PROTECTED] yankl]$ cd test [EMAIL PROTECTED] test]$ vi 1 [EMAIL PROTECTED] test]$ vi 2 [EMAIL PROTECTED] test]$ vi 3 [EMAIL PROTECTED] test]$ cd .. [EMAIL PROTECTED] yankl]$ mkdir test1 [EMAIL PROTECTED] yankl]$ cd test [EMAIL PROTECTED] test]$ mv 3 ../temp/ && cp * ../test1/ && mv ../temp/3 . [EMAIL PROTECTED] test]$ ls 1 2 3 [EMAIL PROTECTED] test]$ ls ../test1 1 2 [EMAIL PROTECTED] test]$ On Saturday 23 August 2003 02:50, Steffen Barszus wrote: > Am Samstag, 23. August 2003 04:21 schrieb David Guntner: > > Udo Rader grabbed a keyboard and wrote: > > > If it were, some construct like the thing below could then list all > > > files in "/opt/too_many_files" except "no_not_this_one": > > > > > > % ls -l /opt/too_many_files/*{!no_not_this_one} > > > > > > Yes, I know this doesn't work, but is there any other efficient way > > > to do this in bash? > > > > ls -la /opt/too_many_files | sed '/not this one/d' > > > > --Dave > > Or ls -la /opt/too_many_files | grep -v "no_not_this_one" , since here > the complete line containing no_not_this_one is deleted. man bash and > some playing around may help too > > !(no_not_this_one) ?? > > Steffen
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com