summaryrefslogtreecommitdiffstats
path: root/source/ap/slackpkg/files/cutpkg.awk
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/slackpkg/files/cutpkg.awk')
-rw-r--r--source/ap/slackpkg/files/cutpkg.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/ap/slackpkg/files/cutpkg.awk b/source/ap/slackpkg/files/cutpkg.awk
new file mode 100644
index 000000000..62aaad737
--- /dev/null
+++ b/source/ap/slackpkg/files/cutpkg.awk
@@ -0,0 +1,8 @@
+OFS="-" {
+ if ( NF > 3 ) {
+ NF=NF-3
+ print $0
+ } else {
+ print $0
+ }
+}