![]() |
|
|
|
|
|||||||
| 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 |
| How to view the contents of .gz file without extracting the file? | amitkhiare | Shell Programming and Scripting | 5 | 11 Hours Ago 11:29 AM |
| search for the contents in many file and print that file using shell script | cdfd123 | Shell Programming and Scripting | 3 | 10-07-2007 07:17 PM |
| append file name contents to a target file | gopskrish | UNIX for Dummies Questions & Answers | 2 | 10-27-2006 03:18 AM |
| Reading specific contents from a file and appending it to another file | dnicky | Shell Programming and Scripting | 5 | 10-04-2005 02:45 AM |
| ls contents of a file | douknownam | Shell Programming and Scripting | 7 | 06-14-2004 06:29 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
||||
|
||||
|
Within your while loop, try echoing all the variables you have assigned. See it they contain the values or not.
|
| Forum Sponsor | ||
|
|
|
#16
|
|||
|
|||
|
Hmm.. it seems like all the variables are not assigned. echo produce empty values through the while loop.
Quote:
|
|
#17
|
||||
|
||||
|
Your while loop works just fine. You will have to see whats happening at your end. Probably, the IFS is wrong.
|
|
#18
|
|||
|
|||
|
I have checked the IFS. It is correct. I am confused
Quote:
|
|
#19
|
||||
|
||||
|
Once again, show us what you are doing...
|
|
#20
|
|||
|
|||
|
Ah... I have got it! the field separator should be IFS=";" format. Thanks a lot for the help!
|
|
#21
|
|||
|
|||
|
Hi,
I have realised that this script will create one output file which is the last entry in the input file. However, I need to create one ķutput file for each line. The names of the output file need to include the ID. How can I do this? |
|||
| Google The UNIX and Linux Forums |