From 112a22ed8583647191e690aa5886f1e80a1df4ce Mon Sep 17 00:00:00 2001 From: Xenhat Hex Date: Sun, 3 May 2020 14:39:52 -0400 Subject: [PATCH] moved remove-version-match script to gitlab.com/src_prepare/scripts --- user_scripts/remove-version-match.sh | 8 -------- 1 file changed, 8 deletions(-) delete mode 100755 user_scripts/remove-version-match.sh diff --git a/user_scripts/remove-version-match.sh b/user_scripts/remove-version-match.sh deleted file mode 100755 index c6ce03e..0000000 --- a/user_scripts/remove-version-match.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -if [ -z $1 ]; then - echo "Must specify a file to modify..." - exit 1 -fi -regex='^=?(\S+)(?:-[[:digit:]]+\S*)(\s)(\S+)$' -sub='\1\2\3' -perl -pe "s;$regex;$sub;gm" -i "${1}"