[rescue] shell script question
Steve Sandau
rescue at sunhelp.org
Fri Oct 26 14:41:25 CDT 2001
Well, personally, I kind o9f like making big messes with awk, especially
on the command line as opposed to in a script file. ;)
Nick Kociuk wrote:
>
> that basically did it, thanks.
>
> heh... i knew there was a fairly simple way of doing it that i was
> overlooking... and here i was making a big mess with awk..
>
> On Fri, 26 Oct 2001, Steve Sandau wrote:
>
> > With #!/bin/sh something like
> >
> > cd /foo
> > for dir in `find . | grep RCS`
> > do
> > mv $dir $dir.old
> > ln -s /new/$dir /foo/$dir
> > done
> >
> > might do it.
> >
> > Depends on how variable the names foo and new are. If they're always the
> > same, this may work. If they vary, it'll get tougher.
> >
>
> _______________________________________________
> rescue maillist - rescue at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/rescue
--
Steve Sandau, IS Technician
TMA Bath, Maine
ssandau at bath.tmac.com
More information about the rescue
mailing list