]> git.mdlowis.com Git - projs/tide.git/commitdiff
updated grepn to spawn a new window to display results
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 31 Oct 2019 16:53:20 +0000 (12:53 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 31 Oct 2019 16:53:20 +0000 (12:53 -0400)
bin/grepn

index 31927119241b2d3d12ed70cdd2f35641960428fd..d7f19b7dc6ab10a8afeec22bd05807b2c63c5674 100755 (executable)
--- a/bin/grepn
+++ b/bin/grepn
@@ -1,2 +1,2 @@
 #!/bin/sh
-grep -n "$@"
\ No newline at end of file
+grep -n "$@" | sed "s|^|${file:?}:|" | tide -
\ No newline at end of file