diff options
author | Robby Workman <rworkman@slackware.com> | 2017-10-19 13:49:43 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-10-22 01:59:41 -0500 |
commit | 406e0e84f5321652fa1a539d80be6ca5df1ffb1b (patch) | |
tree | 0225a21dca44efe55180ee2e83027d5eaca2ddec /files/cutpkg.awk | |
download | slackpkg-406e0e84f5321652fa1a539d80be6ca5df1ffb1b.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.awk | 8 |
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 + } +} |