Recent content by Rahman_

  1. R

    Find two files of similar name which have different extention and copy to new location

    for f in *sac.; do same=("${f%.*}".*); [ "${#same[@]}" -eq 1 ] && mv "$f" /home/newtst ; done
  2. R

    Find two files of similar name which have different extention and copy to new location

    I have a directory containing files as given below PALK.BHZ.2010.10.31.12.23.42.350.10.sac. PALK.BHZ.2010.10.31.12.23.42.350.10.sac..dsp PALK.BHZ.2010.11.08.07.37.10.140.00.sac...
Top