[brlug-general] Recursive batch rename
Nicholas Istre
brlug.list at nickistre.net
Tue May 13 09:07:55 CDT 2008
Just a quick suggestion, but maybe use find instead of ls.
-Nick
On Tue, May 13, 2008 8:58 am, Joe Fruchey wrote:
> This is a silly script question, but I've never done much scripting,
> so help me out here.
>
> I have this simple renaming script, say
>
> for i in $(ls); do (mv $i $i.old); done
>
> How do I make this thing run in all subdirectories? I'm guessing I
> have to define it as a function and have a script traverse the
> directories, but I don't know how.
>
> Help?
>
> -Joe
>
> _______________________________________________
> General mailing list
> General at brlug.net
> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>
>
More information about the General
mailing list