Created
December 14, 2011 02:32
-
-
Save thewtex/1474982 to your computer and use it in GitHub Desktop.
itk registration name refactoring fix file content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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