[rescue] shell script question

Nick Kociuk rescue at sunhelp.org
Fri Oct 26 14:10:21 CDT 2001


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.
>




More information about the rescue mailing list