[ale] hmm. yer never too old to trip on Grep Reg Expressions

DJ-Pfulio DJPfulio at jdpfu.com
Sun Sep 25 10:27:34 EDT 2016


I think egrep is just a hardlink to grep ... and enabled the -E switch.
Hey, if I can save 2 characters, I call it a win!

I've gotten lazy for file searches. If I'm not thinking like a
programmer at the time, then recoll is what I use. It indexes anything
new at 6am daily here. I mainly do it on the backup server, so
effectively, all systems have a full text search index.  The media
server system does its own daily indexing, since media files don't get
backed up the same way that all other files do.  recoll has a cli
interface, so we don't have to be bothered with the GUI too.  Like a
good Unix program should. ;)



On 09/25/2016 10:10 AM, Jim Kinney wrote:
> I've notice that different distros use grep/egrep based on how it's
> called and some always call egrep. That will fubar badly moving between
> environments. I've gotten in the habit of "grep for text, egrep for
> everything else".
> So " what file has string foo?" is a grep for me. I call egrep
> explicitly for regex.
> 
> I would love to see gnu remove regex capability from simple, old grep
> completely. Nothing but exact string matching. Then all regex usage is
> in egrep. Sort of baby grep vs grown up grep. Hmm. Maybe an sgrep
> version- simple grep or string grep with the only option being to
> display substring matches and limit the number of characters to drop
> from the string for a match.
> 
> If I dig in man grep, er, info (damn!), I'll bet that is already an
> option. I think it's possible to brew coffee using grep, sed awk and emacs.
> 
> 


More information about the Ale mailing list