Skip to content

Instantly share code, notes, and snippets.

@kpedro88
Created May 25, 2018 16:26
Show Gist options
  • Save kpedro88/a53e7ecdf870ff97538fd007b5254626 to your computer and use it in GitHub Desktop.
Save kpedro88/a53e7ecdf870ff97538fd007b5254626 to your computer and use it in GitHub Desktop.
#!/bin/bash
NEWDIR=unagedECAL
mkdir -p $NEWDIR
for i in *.py; do
sed 's/customise_aging_4500_ultimate(process)/ageHcal(process,4500,7.5e34,"ultimate")/; s/customise_aging_4500_ultimate/ageHcal/' $i > ${NEWDIR}/$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment