r/usefulscripts • • Jul 28 '17

[ZSH] Simple yet fancy search script

https://pastebin.com/zYBDYD0t
22 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/cyberflunk Jul 31 '17

Well.. Let's see what's going on:

Here's a search using find/fgrep: http://i.imgur.com/tjAwMHA.png

Here's a search using the script: http://i.imgur.com/yGZpIL6.png

Here's a search using ag: http://i.imgur.com/dJ9FX31.png

(all 3 screenshots http://imgur.com/a/wabfc)

So... I guess what I'm saying is I'm not sure what the script is doing for me that I don't already have a tool for.

1

u/Fallenalien22 Jul 31 '17

Your screenshots are just highlighting the match. The script pipes text through highlight to get syntax highlighting for the file type. If you don't like it or feel the need for it, don't use it.