scripts: add remove-version-match script by request
IDK how to format this for a repository, pls send help.
This commit is contained in:
parent
c9a1bc2f79
commit
ea49d11668
6
remove-version-match.sh
Executable file
6
remove-version-match.sh
Executable file
@ -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}"
|
Loading…
Reference in New Issue
Block a user