diff --git a/remove-version-match.sh b/remove-version-match.sh new file mode 100755 index 0000000..44fcfcf --- /dev/null +++ b/remove-version-match.sh @@ -0,0 +1,6 @@ +#!/bin/sh +if [ -z $1 ]; then + echo "Must specify a file to modify..." + exit 1 +fi +perl -pe 's;^=?(\S+)(?:-[[:digit:]]+\.\S+)(\s)(\S+)$;\1\2\3;' -i "${1}"