![]() |
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 |
| Arrays & File Reading | Asylus | Shell Programming and Scripting | 1 | 12-17-2007 09:15 PM |
| Help reading an input file in KSH | zilla30066 | Shell Programming and Scripting | 2 | 02-01-2007 06:45 AM |
| Using loop reading a file,retrieving data from data base. | Sonu4lov | Shell Programming and Scripting | 1 | 01-19-2007 03:38 AM |
| Script for reading an input file | gzs553 | Shell Programming and Scripting | 1 | 10-17-2006 06:55 AM |
| Reading Input from File and Duplicates Output | noelcantona | Shell Programming and Scripting | 6 | 10-18-2005 04:59 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Reading in data sets into arrays from an input file.
Hye all,
I would like some help with reading in a file in which the data is seperated by commas. for instance: input.dat: 1,2,34,/test for the above case, the fn. will store the values into an array -> data[] as follows: data[0] = 1 data[1] = 2 data[2] = 34 data[3] = /test I am trying to write this fn. but dont know how to look for a comma so that the next data can be read in. Any help will be appreciated. Thanks in advance. |
|
||||
|
script in ksh.
Thanks for the input..!
I am sorry I didn't mention this earlier, but I am using ksh. I am going to try this out with what I am working on. Once again, thanks a lot for all the input. Goodday! ![]() |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| delimited, parsing, perl split |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|