USM Bish wrote:
>
>
> ---------------<snip>-------------------
> #!/bin/bash
> # Renaming File Extensions Script (rfes)
> # Usage: rfes old_extn new_extn
>
> if [ $# -ne 2 ]
> then
> echo "Usage: `basename $0` old_suffix new_suffix"
> exit 1
> fi
>
> for file in *.$1
> do
> mv $file ${file%$1}$2
> done
>
> exit 0
> --------------</snip>---------------------
>
It worked, but changes only ext .abc to .xyz style. Not increamental.
> For your requirement of changing the extension dynamically
> with extension increments see if you can generate the new
> extension, instead of using $2 ... do it as homework :-)
Thanks Bish, but I want incremental extention. Why r u testing my weak IQ ?
:(
Pl help !
Regards & thanks !
~ Pat
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help