Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
ksh reading from file
Name: coop Date: June 23, 2005 at 08:08:03 Pacific OS: XP CPU/Ram: 2Gighrtz Pentium 4/512mb
Comment:
Hi I'm reading from a file using a while loop, but if my file does not end with a new line, the last line is not read. My script is basically:
while read -r line do ... done < $filename
Is there anyway to read the last line if the file doesn't end with a newline character?
Summary: thanks for reply, but I do that.My problem is: Oracle(installed on Solaris) don't read the files because this is in win ascii format.There is a way, in pl/sql, to transform the files from win ascii fo...
Summary: I have found out that some code I am working on could be made simpler and neater by writing files to new streams created by me, and then later reading from those new streams line by line in a loop. Th...