![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Grep question. | saurabhsinha23 | UNIX for Dummies Questions & Answers | 3 | 12-11-2007 01:58 AM |
| Question about GREP | Adriel | UNIX for Dummies Questions & Answers | 16 | 03-22-2007 08:03 AM |
| Another grep question | kingdbag | UNIX for Dummies Questions & Answers | 6 | 10-27-2006 02:56 AM |
| grep & sed question | der Kopf | Shell Programming and Scripting | 1 | 11-22-2004 04:49 AM |
| Grep question | eloquent99 | UNIX for Dummies Questions & Answers | 4 | 02-20-2003 10:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello Everybody,
I have files; yyyymmdd.log which the data look like this; [20/Jun/2006:00:00:56 +0800] "Txid=9426043&MsgTxt=Thankyou&UserId=john&Password=jh2501" [21/Jun/2006:19:15:56 +0800] "Txid=9426150&MsgTxt=Thankyou&UserId=john&Password=jh2501" . . . [29/Jun/2006:12:00:26 +0800] "Txid=9426200&MsgTxt=Thankyou&UserId=john&Password=jh2501" Question 1: How to grep the data based on date i.e. from 20/Jun/2006 untill 25/Jun/2006? Question 2: How to grep specific word only i.e. "Txid=9426043" which the output must be "Txid=9426043" only instead of the whole statement ([20/Jun/2006:00:00:56 +0800] "Txid=9426043&MsgTxt=Thankyou&UserId=john&Password=jh2501") Question 3: Normally I do wc-l yyyymmdd.log to check total number of line but how i can create the output file with total number of line e.g. yyyymmdd_"total number of line".log when i run wc . Appreciate your answers. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|