![]() |
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 |
| [C++] File I/O (Reading from a Random-Access File) | VersEtreOuNe | High Level Programming | 0 | 02-12-2008 04:34 PM |
| 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 a file and writing the file name to a param file. | thebeginer | UNIX for Advanced & Expert Users | 1 | 10-05-2007 05:38 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 specific contents from a file and appending it to another file | dnicky | Shell Programming and Scripting | 5 | 10-04-2005 06:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
reading from file
frnds,,,
I have a file with thousands of numbers in it ( 1 per line ) like... first some lines of the lines 'd be 3123123344 3123213144 4234234555 4353453453 .... .... I need 3 parameters while executing the script. 1st is a number ( constant ) and 2nd is the date and the 3rd one is the filename of the above file from which i have to read these numbers one by one. pl suggest me the some best possible ways to achieve this senario. Thanks. |
|
||||
|
Try this
Code:
param_one=your_constant param_two=date while read param_three do do_calculations_using $param_one $param_two $param_three done < $your_file_name_here Last edited by guruparan18; 09-01-2008 at 10:41 AM.. Reason: Added $ infront of your_file_name_here |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|