diff options
author | epochqwert <epoch@hacking.allowed.org> | 2015-05-12 03:34:00 -0500 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2015-05-12 03:34:00 -0500 |
commit | 2863ed85e74edaff40aef16d0e91c98e430c1060 (patch) | |
tree | f6c706b8c97d88358dc8e4daf87c17debaea92ad /nocompile/bin | |
parent | 6af32e50e9e00989d4f9dbd7a4069540576952c6 (diff) | |
download | misc-2863ed85e74edaff40aef16d0e91c98e430c1060.tar.gz misc-2863ed85e74edaff40aef16d0e91c98e430c1060.zip |
added a really slow shell implementation of grepurl.
fixed cuturl when no arguments were given. would eat argv[0] as an argument. :/
Diffstat (limited to 'nocompile/bin')
-rwxr-xr-x | nocompile/bin/grepurl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nocompile/bin/grepurl b/nocompile/bin/grepurl new file mode 100755 index 0000000..50dc516 --- /dev/null +++ b/nocompile/bin/grepurl @@ -0,0 +1,4 @@ +#!/bin/sh +while read URL;do + printf "%s" "$URL" | cuturl "$1" | grep "$2" >/dev/null && echo $URL +done |