![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 01:23 AM |
| Reading the particular line from the file | eamani_sun | Shell Programming and Scripting | 3 | 05-16-2008 01:55 PM |
| reading text file line by line | MizzGail | Shell Programming and Scripting | 6 | 04-14-2008 03:58 AM |
| Line by line file reading... and more! | ProFiction | Shell Programming and Scripting | 6 | 07-26-2007 08:32 AM |
| Reading line by line from file. | akpopa | UNIX for Dummies Questions & Answers | 4 | 08-30-2001 07:20 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
See this - 12 Ways to Parse a file
|
|
#3
|
|||
|
|||
|
well thanks a lot...
i will go through that.... |
|||
| Google The UNIX and Linux Forums |