[ngs-2012] a simple shell script for renaming files.

Likit Preeyanon preeyano at msu.edu
Wed Jun 13 11:59:45 PDT 2012


Hi, 

For those who are curious, I just wrote a simple shell script that rename all files in the RAD tutorials. It works fine but it is not robust.
You can modify the script to learn how it works.

#! /bin/sh
k=1
for f in sample*.fq
do
	mv $f indv_`printf "%02d" "$k"`.fq
	k=$((k+1))
done

hope it is helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/ngs-2012/attachments/20120613/a6ca075f/attachment.htm>


More information about the ngs-2012 mailing list