Skip to content

Instantly share code, notes, and snippets.

@thewtex
Created December 14, 2011 02:32
Show Gist options
  • Save thewtex/1474982 to your computer and use it in GitHub Desktop.
Save thewtex/1474982 to your computer and use it in GitHub Desktop.
itk registration name refactoring fix file content
#!/bin/sh
if test $# -lt 1; then
echo 'input old to new csv file'
exit 1
fi
sed -e 's%^%s/%' -e 's%,%/%' -e 's%$%/g%' < "$1" > sed_script
find CMake Documentation CMakeLists.txt Examples Modules Testing Utilities Wrapping \
-type f | while read filename; do
echo "Fixing $filename ..."
sed -i -f sed_script $filename
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment