![]() |
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 from a file and pass as variables and ignore # in the file | konark | Shell Programming and Scripting | 4 | 11-08-2007 03:55 AM |
| reading unix file system from windows | cneill | Filesystems, Disks and Memory | 0 | 02-06-2007 01:21 PM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
| Reading lines within a Unix file. | mariner | UNIX for Advanced & Expert Users | 5 | 11-18-2003 01:26 PM |
| Reading Particular Line From A File in Unix | yeheyaansari | UNIX for Advanced & Expert Users | 2 | 02-12-2002 08:42 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
file reading in unix
Hi ,
I need to read line by line from a file. Can u please tell me the most efficient way to do it. SInce i will be reading more than 1000 files in my program. i am trying the following options : 1. nawk option nawk'{ print $0 }'files.temp 2. filecount=`cat files.temp | wc -l` i=1 while [ $i -le $filecount ] do filename=`cat files.temp | head -$i | tail -1` #echo $filename done can u please tell me the best way to do this. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|