src_prepare-overlay/remove-version-match.sh
Xenhat Hex ea49d11668
scripts: add remove-version-match script by request
IDK how to format this for a repository, pls send help.
2020-04-29 22:28:27 -04:00

7 lines
153 B
Bash
Executable File

#!/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}"