Created
May 16, 2018 06:52
-
-
Save MightyPork/261da7a9dddafc6fd4771458f98048b7 to your computer and use it in GitHub Desktop.
script to remove informal expressions from scientific writing
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/bash | |
if [[ "$1" == "" ]]; then | |
echo "missing arg" | |
exit | |
fi | |
echo "Processing $1" | |
sed -i "s/low cost/low-cost/g" "$1" | |
sed -i "s/general purpose/general-purpose/g" "$1" | |
sed -i "s/high level/high-level/g" "$1" | |
sed -i "s/low level/low-level/g" "$1" | |
sed -i "s/don't/do not/g" "$1" | |
sed -i "s/Don't/Do not/g" "$1" | |
sed -i "s/it's/it is/g" "$1" | |
sed -i "s/It's/It is/g" "$1" | |
sed -i "s/isn't/is not/g" "$1" | |
sed -i "s/aren't/are not/g" "$1" | |
sed -i "s/Aren't/Are not/g" "$1" | |
sed -i "s/wouldn't/would not/g" "$1" | |
sed -i "s/Wouldn't/Would not/g" "$1" | |
sed -i "s/couldn't/could not/g" "$1" | |
sed -i "s/Couldn't/Could not/g" "$1" | |
sed -i "s/shouldn't/should not/g" "$1" | |
sed -i "s/Shouldn't/Should not/g" "$1" | |
sed -i "s/can't/cannot/g" "$1" | |
sed -i "s/in recent years/recently/g" "$1" | |
sed -i "s/In recent years/Recently/g" "$1" | |
git diff --word-diff "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment