Skip to content

Instantly share code, notes, and snippets.

@suimye
Created February 19, 2016 05:17
Show Gist options
  • Save suimye/a8f1f9313fdd69978a25 to your computer and use it in GitHub Desktop.
Save suimye/a8f1f9313fdd69978a25 to your computer and use it in GitHub Desktop.
bigWigAverageOverBed error ref: http://qiita.com/suimye/items/3035deffaa36e460e900
#!/bin/sh
FL=`ls`
for files in $FL;
do
if [[ "$files" =~ ".bw" ]];then
newfile1=$(echo $files | sed 's/[\,|\ |\:|\(|\)|\^]/\./g;')
newfile2=$(echo $newfile1 | sed 's/\.\./\./g;')
#echo $newfile2
mv $files $newfile2
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment