![]() |
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 |
| read a file line by line in ksh | chella | Shell Programming and Scripting | 3 | 08-29-2008 01:57 AM |
| query on how to search for a line and read 4th word from that line | jaggesh | UNIX for Dummies Questions & Answers | 4 | 07-01-2008 10:21 PM |
| Read logline line by line with awk/sed | dejavu88 | Shell Programming and Scripting | 7 | 05-26-2008 08:44 PM |
| read the file line by line | kittusri9 | Shell Programming and Scripting | 3 | 04-24-2008 08:26 AM |
| How to read from a file line by line and do stuff | spaceship | Shell Programming and Scripting | 4 | 03-17-2005 09:47 PM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Can't read the last line
Hi there,
I found a script that supposed to read a file line by line, but it skips the last line, any suggestions? exec<$fname value=0 while read line do value=`expr $value + 1`; echo "line is: $value, email is: $line"; done Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|