2006-02-22

Little Known Fact of the Day

The unix utility grep is an essential part of the toolkit of any shell denizen, I can't imagine living without it.

The origin of its name is from the beginning itself. From ed, the editor.

grep is an abbreviation of the ed command:

:global/regular expression/print

or, more succinctly expressed as:

:g/re/p

Vim, vi, etc, still have the same commands, and the same syntax works today.
'rati tags: vim

No comments: