![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| reading ps command's output line by line | s. murat | Shell Programming and Scripting | 5 | 05-22-2008 04:23 AM |
| Reading the particular line from the file | eamani_sun | Shell Programming and Scripting | 3 | 05-16-2008 04:55 PM |
| reading text file line by line | MizzGail | Shell Programming and Scripting | 6 | 04-14-2008 06:58 AM |
| Line by line file reading... and more! | ProFiction | Shell Programming and Scripting | 6 | 07-26-2007 11:32 AM |
| Reading line by line from file. | akpopa | UNIX for Dummies Questions & Answers | 4 | 08-30-2001 10:20 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Reading line by line from a file
Hello..
Is there any way in UNIX shell scripting by which we can read a file one line at a time and at the same time maintains a count of where to read the next line from? i could not find any such command and so i am currently using something like head -$COUNTER | tail -1 COUNTER=`expr $COUNTER + 1` to read successive lines.. bye |
|
|||||
|
See this - 12 Ways to Parse a file
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|