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.
How to detect EOF of a text file
Name: Horace Date: June 2, 2003 at 05:42:37 Pacific OS: Solaris 9 CPU/Ram: Sparc Ultra
Comment:
Hi, I am doing some records processing in a text file. I would like to know how can I read the lines repeatedly until the EOF character is reach?
Name: nails Date: June 2, 2003 at 08:45:58 Pacific
Reply:
Hi:
I'm assuming you want to do it in a unix shell. a ksh method:
while txtline=$(line) do echo $txtline done data.file # thers a less than sign (for input) between 'done' and 'data.file'. This forum wipes that key out.
Regards,
Nails
0
Response Number 2
Name: Horace Date: June 2, 2003 at 10:20:05 Pacific
Reply:
Hi Nails,
thanks for your reply. I'm using the bash. Anyway, I think there are similarities in syntax and implementations.
Summary: Hi, How to convert a text file (which is tab delimited) into an .xls file. in unix scripting. I tired renaming the extension of .txt into .xls. It seems to work so but the leading zeros of the cell co...
Summary: I have a customer with SCO Unix and Windows . He has is a program that can create a large textfile. What he will use this program for is to create a text file that will contain a large amount of cu...
Summary: Hi All, I have folder and its having 4 zip files. But i wanted to find a file which in the zip file inside the folder. i want to unzip and find a particular file. how to do that. i tried to write t...