Home | Forums | Articles | F@H
Help | Search | Members | Calendar | Forum Map | Cybervillage | Archive
Welcome Guest ( Log In | Register | Resend Validation Email )


>  IceTeks Forums -> Technology made cool -> IceTeks Articles


  Reply to this topicStart new topic

>  Text searching in linux with grep, Reach out and grep someone
Track this topic | Email this topic | Print this topic
Red Squirrel
Posted: Feb 13 2005, 12:11 AM
Quote Post

ZOMG!

Group Icon

Group: Admins
Posts: 13 964
Member No.: 1
Joined: 18-December 02
Ice Cubes: 163183



Grep is a linux command that is often overlooked but can be very useful when searching for stuff from a single string to a complicated regular expression. This article scratches the surface on it's power and should leave you with enough information to discover new uses for it.

http://www.iceteks.com/articles.php/grep/1



--------------------
user posted image
http://www.redsquirrel.me my blog
http://www.uovalor.com AoS/ML Ultima Online Shard
PMEmail PosterUsers Website Top
Red Squirrel
Posted: Feb 14 2005, 07:22 PM
Quote Post

ZOMG!

Group Icon

Group: Admins
Posts: 13 964
Member No.: 1
Joined: 18-December 02
Ice Cubes: 163183



These tests are done on RH8.0 which is considered somehwhat old so it could be possible that things got changed.

And the reason for the -l was to have 1 file per line, since the other is multiple files per line which achieves undesirable results in these examples. Though the results would of been the same if I would of put the words in a file line per line, but just wanted to show examples using real-time situations.


--------------------
user posted image
http://www.redsquirrel.me my blog
http://www.uovalor.com AoS/ML Ultima Online Shard
PMEmail PosterUsers Website Top
Red Squirrel
Posted: Apr 27 2005, 12:13 PM
Quote Post

ZOMG!

Group Icon

Group: Admins
Posts: 13 964
Member No.: 1
Joined: 18-December 02
Ice Cubes: 163183



I think grep is only a linux thing, but there is a windows program that does the same but I forget what it's called.


--------------------
user posted image
http://www.redsquirrel.me my blog
http://www.uovalor.com AoS/ML Ultima Online Shard
PMEmail PosterUsers Website Top
Shinizo
Posted: Jun 25 2005, 11:18 AM
Quote Post

Snow Bank

Group Icon

Group: IceTeks Members
Posts: 58
Member No.: 932
Joined: 24-June 05
Ice Cubes: 0



Do you want an apple pie with that?


--------------------
I don't believe in fairy tales, and noone wants to go to hell. You made the wrong decision, boy, and it's easy to see.

Hatred fuels my blood. (I'll burn you down) You can't help me.
-Avenged Sevenfold

user posted image
PMEmail PosterAOLYahooMSN Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | IceTeks Articles | Next Newest »

Topic Options Reply to this topicStart new topic

 



[ Script Execution time: 0.0352 ]   [ 13 queries used ]   [ GZIP Enabled ]

< Home | Forums | Contact >