shithub: purgatorio

Download patch

ref: bd6c2aad586814b091ce5aca9d41cf2c51adb37b
parent: f0b565742993646ac2c7939e3a89f44c2515fbe6
author: henesy <devnull@localhost>
date: Mon Sep 28 00:47:05 EDT 2020

add g(1) ;; make gr(1) call g(1)

--- /dev/null	Mon Oct 18 12:05:45 2021
+++ b/dis/g	Mon Sep 28 00:47:05 2020
@@ -0,0 +1,3 @@
+#!/dis/sh
+
+grep -n $* /dev/null
--- a/dis/gr	Mon Sep 28 00:12:19 2020
+++ b/dis/gr	Mon Sep 28 00:47:05 2020
@@ -1,5 +1,5 @@
 #!/dis/sh
-# gr - recursive grep(1)
+# gr - recursive g(1)
 
 load expr
 load std
@@ -41,4 +41,4 @@
 	n = ${expr $n 1 +}
 }
 
-grep $opts -n $pattern `{findfiles $dirs}
+g $opts $pattern `{findfiles $dirs}