[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fast blas1



>> Adam C Powell IV <hazelsct@mit.edu> writes:

 >    * I can't figure out how to do cp */*.o *.i as in, rename those files
 >      to the same thing with .i instead of .o, so I can't make the static
 >      lib work.

Use mmv, but it's "non standard". (don't ask me how, I just know it
does this)

In bash (less non standard):

$ for object in *.o ; do mv $object ${object%.o}.i ; done

In general (standard but slower):

$ for object in *.o ;
  do mv $object `echo $object | sed -e 's/\.o$/.i/'` ;
  done


				Marcelo


Reply to: