![]() |
|
|
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 |
| tail | grep lagging badly | WasabiVengeance | Shell Programming and Scripting | 3 | 04-22-2008 07:53 PM |
| grep problem with the ^ symbol, help needed please. | Gvsumrb | UNIX for Dummies Questions & Answers | 2 | 03-31-2008 11:04 AM |
| tail, grep and cut | sylaan | Shell Programming and Scripting | 7 | 03-04-2008 02:41 AM |
| Help Needed in Grep Command | ranga27 | UNIX for Advanced & Expert Users | 7 | 09-11-2007 10:20 AM |
| Constantly updating log files (tail -f? grep? awk?) | nortonloaf | UNIX for Dummies Questions & Answers | 0 | 12-03-2006 11:20 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help with tail /grep needed
Hello:
I'm a very newbee at UNIX/AIX. What i want to do is to tail a file from the bottom until a certain string is found and write all the lines after the found string to another file. I've tried out a lot of combination with tail and grep but doesn't find the good one. Could someone help me or give me a hint with this issue? Many thanks in advance, Felix |
|
||||
|
INPUT lOG:-> this is the file i want to serach -> string to search
atabase Connection InformationDatabase Connection Information Database server = SQL authorization ID = Local database alias = Number of rows read = 18724 Number of rows skipped = 0 Number of rows loaded = 18724 Number of rows rejected = 0 Number of rows deleted = 0 Number of rows committed = 18724 DB20000I The RUNSTATS command completed successfully. DB20000I The SQL command completed successfully. DB20000I The SQL command completed successfully. B20000I The RUNSTATS command completed successfully. Database Connection Information Database server = SQL authorization ID = Local database alias = Number of rows read = 18724 Number of rows skipped = 0 Number of rows loaded = 18724 Number of rows rejected = 0 Number of rows deleted = 0 Number of rows committed = 18724 DB20000I The RUNSTATS command completed successfully. DB20000I The SQL command completed successfully. DB20000I The SQL command completed successfully. DB20000I The RUNSTATS command completed successfully. ---------- --------------- -------------- ------------- ------------- The Output file i want to have is only the first part of it beginning from the buttom: Database Connection Information Database server = SQL authorization ID = Local database alias = Number of rows read = 18724 Number of rows skipped = 0 Number of rows loaded = 18724 Number of rows rejected = 0 Number of rows deleted = 0 Number of rows committed = 18724 DB20000I The RUNSTATS command completed successfully. DB20000I The SQL command completed successfully. DB20000I The SQL command completed successfully. DB20000I The RUNSTATS command completed successfully. Thank you. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|