interactive grep, igrep

This commit is contained in:
ville rantanen
2014-02-24 07:26:19 +02:00
parent c705e549f3
commit 675c5d6c81

View File

@@ -205,3 +205,15 @@ function rmv () {
fi
done
}
function igrep () {
# Interactive grep
local args
args="-i -e value"
while true
do read -e -i "$args" args
echo $@
grep $args "$@"
done
}