Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 







Current Newswire:

My Quest for Free Licensed Japanese Pop Music

C++ Help: Installing and Using Code::Blocks On Linux

Help an Old PC: Give KDE 3.5 the Oxygen Touch

Linux Mint 9 (Debian) Review

Mozilla Labs Announces Gaming Platform

More Android tablets break cover

GNOME 3 at Xen 4.0.1 (2.6.32.21 pvops) on top of F14 (rawhide)

Old Generals Never Die - They just Wear a Red Hat

How Stock Photo Agency YayMicro.com was Created Using Only Open Source Technology.

Samsung Opens The Door To 1080p On Smartphones




Senior Oracle Implementation Consultant
Thomson Reuters (Tax & Accounting), Inc.
US-OR-Lake Oswego

Justtechjobs.com Post A Job | Post A Resume
:Linux Newbie : Why grep almost never yields something productive
Linux Newbie : Why grep almost never yields something productive
Feb 4, 2010, 20 :03 UTC (6 Talkback[s]) (4419 reads)

"Every Linux newbie hears about power of grep sooner or later. But no sooner does newbie try to the grep command the experiment ends badly. The reason grep almost never yields anything productive is because of a couple of issues. The basic problem is lack of knowledge of regular expressions and secondly knowledge of switches of grep. This realization should not deter a new user from using grep. A very nice detailed tutorial of regular expression (regex) is available here. The migrating user having used dir and similar commands in DOS and using windows search box almost never expects (nor can fathom) the power provided by grep.

"Firstly grep means "global regular expression print". Now this means that knowledge of regex is required to be able to use grep effectively. Now what should a newbie do? Wait till user's regex knowledge improves? NO NOT AT ALL. That would scare away the user and never to use grep. Here is the first simple command that would work to display the files in the current directory."

Complete Story

Related Stories:
Bash 101: Working at the CLI(Jan 10, 2010)
Grep and print control characters in file(Dec 04, 2009)
sed and grep tips(Jul 16, 2009)
Command line made easy: five simple recipes for grep(May 06, 2009)
Colorize grep output(Mar 16, 2009)
Using Grep To Streamline Your Shell And Command Line Scripting(Aug 08, 2008)
grep Is A Beautiful Tool(Jul 15, 2008)
Using grep and sed to Find and Replace(Nov 29, 2007)


Index Mode   |   Flat Mode   |   Thread Mode   |   Thread Flat  
  Talkback(s) Name  and Date
The first paragraph says that grep only  ...   directory/file confusion   
dan
Feb 4, 2010, 22:58:33
 
Grep matches the input you feed it again ...   Re: directory/file confusion   
Jose_X
Feb 5, 2010, 02:29:03
 
>> cat a-text-file | egrep hello>> ls a- ...   Re: Re: directory/file confusion   
Jose_X
Feb 5, 2010, 03:25:36
 
> The first paragraph says that grep onl ...   Re: directory/file confusion   
Tony OBryan
Feb 5, 2010, 14:41:15
 
> The first paragraph says that grep onl ...   Re: directory/file confusion   
Rainer Weikusat
Feb 5, 2010, 15:39:06
 
> find . -type f |.There is an 'xarg ...   Re: Re: directory/file confusion   
Rainer Weikusat
Feb 5, 2010, 21:14:19
 
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP