[Technic] linux help
Scott Mayo
sgmayo at mail.bloomfield.k12.mo.us
Thu Jul 12 09:27:25 CDT 2007
Ricky Nance wrote:
> Hope this doesn't post twice, but I had an email problem when I sent it the
> first time.
>
> mkdir /dir1.bak; mv /dir1/save1 /dir1.bak; mv /dir1/save2 /dir1.bak; rm /dir1
> -fdr (use with caution, it recursivly deletes without asking the dir1!!!); mv
> /dir1.bak /dir1
Thanks Ricky, but I was just wondering if I can do this without having
to do an actual mv of directories.
I know that I can 'ls * | grep -v save' to list everything except the
things in the directory 'save'. I guess I need to somehow pass the
output to the rm, but not sure how. I have not done a lot of looking at
this yet, so I'll play with it some more later.
Thanks.
--
Scott Mayo
System Administrator
Bloomfield Schools
PH: 573-568-5669
FA: 573-568-4565
Pager: 800-264-2535 X2549
Duct tape is like the force, it has a light side and a dark side and it
holds the universe together.
More information about the Technic
mailing list
|