![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can i read a non text file in unix - ELF-64 executable object file - IA64 | alexcol | UNIX for Advanced & Expert Users | 8 | 11-07-2008 08:56 AM |
| Scanning file backwards | tekster757 | UNIX for Advanced & Expert Users | 2 | 09-21-2007 06:07 PM |
| Post Shell programming: Question about source a file and read data from the file | ccwq | Shell Programming and Scripting | 3 | 08-04-2007 11:28 PM |
| ML level went backwards? | pschlesinger | AIX | 1 | 08-09-2006 06:12 PM |
| How to read specific lines in a bulk file using C file Programming | rajan_ka1 | High Level Programming | 10 | 11-10-2005 03:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
read file backwards
Assume file1 contains a list of strings.
My first script is scanning the file and deals with the lines with a certain patern in it: grep 'somepatern' file1 \ while read LINE ; do doSomethingAboutIt done Now, I need a second script that deals with the same lines (& do something differently) but in the opposite order; the last line found in the file with that patern shuld be handled first. Please help me. Thanks so much!!! Last edited by bluemoon1; 09-28-2007 at 12:36 AM.. Reason: typo |
|
|||||
|
Hey, there's a new approach. For some other solutions see: sort a file in reverse order
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|