summaryrefslogtreecommitdiffstats
path: root/files/cutpkg.awk
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-10-19 13:49:43 -0500
committerRobby Workman <rworkman@slackware.com>2017-10-22 01:59:41 -0500
commit406e0e84f5321652fa1a539d80be6ca5df1ffb1b (patch)
tree0225a21dca44efe55180ee2e83027d5eaca2ddec /files/cutpkg.awk
downloadslackpkg-2.82.2.tar.xz
*: Initial commit of slackpkg (as of 2.82.2 release)2.82.2
Diffstat (limited to 'files/cutpkg.awk')
-rw-r--r--files/cutpkg.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/files/cutpkg.awk b/files/cutpkg.awk
new file mode 100644
index 0000000..62aaad7
--- /dev/null
+++ b/files/cutpkg.awk
@@ -0,0 +1,8 @@
+OFS="-" {
+ if ( NF > 3 ) {
+ NF=NF-3
+ print $0
+ } else {
+ print $0
+ }
+}