On Sat, 14 Aug 2004 15:46:12 -0800, Scott Johnson
<scott.a.johnson@gmail.com> wrote:
> How can I do a mass re-naming of files in a directory? Like, I have a
> bunch of files with an underscore in the file name, but I need to
> replace all instances of the underscore in the name with a period.
>
> Example:
>
> This_Is_The_Current_File_Name changes to This.Is.The.Current.File.Name
>
> Thanks
> --
> Scott Johnson
> scott.a.johnson@gmail.com
>
woot nevermind. Just got my first shell script figured out....
for i in *
do
mv $i `echo $i | tr "_" "."`
done
-- Scott Johnson scott.a.johnson@gmail.com --------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.Received on Sat Aug 14 16:11:05 2004
This archive was generated by hypermail 2.1.8 : Sat Aug 14 2004 - 16:11:07 AKDT