shithub: ircs

Download patch

ref: a90d1130f47c07132f1816366b05f18929911e60
parent: e57fc06379d7784bf90fadc8ac4440e2d2b2270b
author: kemal <kemalinanc8@gmail.com>
date: Sun Oct 3 06:33:21 EDT 2021

irctime, nojqpn: #!/bin/rc -> #!/bin/(awk|grep) -f

--- a/irctime
+++ b/irctime
@@ -1,6 +1,5 @@
-#!/bin/rc
+#!/bin/awk -f
 # irctime: convert ircs timestamps to ISO 8601 format
-awk '
 BEGIN {
 	mon["Jan"] = "01"
 	mon["Feb"] = "02"
@@ -24,4 +23,3 @@
 {
 	print yyyy "-" mm "-" dd "T" $0
 }
-' $*
--- a/nojqpn
+++ b/nojqpn
@@ -1,3 +1,3 @@
-#!/bin/rc
+#!/bin/grep -vf
 # nojqpn: filter out JOIN/QUIT/PART/NICK
-grep -v '^[0-9:]+ (JOIN|QUIT|PART|NICK)' $*
+^[0-9:]+ (JOIN|QUIT|PART|NICK)