[oclug] changing suffix

Adil adil040 at yahoo.com
Mon Jun 14 18:51:46 EDT 2010


> I tried (to echo first):
> for f in *\.a\.bl; do echo ${f#\.a\}.b; done

Hi! Try:

  for f in *.a.b
  do
    mv $f ${f/.a.b/.b}
  done

Cheers.
Sadrul

--- On Mon, 6/14/10, James <bjlockie at lockie.ca> wrote:

> From: James <bjlockie at lockie.ca>
> Subject: [oclug] changing suffix
> To: "OCLUG Mailing List" <oclug at lists.oclug.on.ca>
> Received: Monday, June 14, 2010, 5:59 PM
>   I am trying tro change the
> suffix of files that end in .a.b to .b
> 
> I tried (to echo first):
> for f in *\.a\.bl; do echo ${f#\.a\}.b; done
> 
> -- 
> OCLUG general discussion list
> OCLUG at lists.oclug.on.ca
> http://oclug.on.ca/mailman/listinfo/oclug
> 




More information about the OCLUG mailing list