Skip to content

Instantly share code, notes, and snippets.

@epcim
Created October 20, 2015 09:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save epcim/c83af0c148588fb61219 to your computer and use it in GitHub Desktop.
#!/bin/sh
# fix bibble labs workqueus
```
for i in `ls *.work`; do cat $i | sed -e 's/\(.*\)\/\(.*\)/\/home\/epcim\/hg2g\/pho\/archive\/2008\/2008-09_DovolenaToskanskoKorsica\/ape-allToProcess\/\L\2/' > $i.ok ; done
echo rm *.work
for i in `ls *.work.ok`; do N=`echo $i | sed -e 's:\.ok::'`; echo mv $i $N ; done
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment