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.
reading from a file in unix
Name: trichyselva Date: March 27, 2006 at 21:50:13 Pacific OS: win xp CPU/Ram: p4 Product: pentium
Name: lchi2000g Date: March 29, 2006 at 11:31:29 Pacific
Reply:
cat input.txt | while read LINE do echo $LINE done
Luke Chi
1
Response Number 2
Name: Lance Cheng Date: May 16, 2006 at 22:35:37 Pacific
Reply:
I have a question.. what if you have a file having numbers every line and you have to get the total of all the numbers in the file? How will you do that?
Summary: Hi I have a script that reads from a text file and in the script I have conditional statements. The script works if I create a text file from scratch, but for some reason, my conditional statements do...
Summary: First - you probably realize that the 'i' variable in the scanf should have a '&' in front of it: scanf("%d",&i); To read from a file using scanf: include [stdio.h] include [stdlib.h] /* because of ...
Summary: Is there a way to update the contents of a file (this file contains a list of sqls) without piping it to a new file using a shell script ? I have 15 processes reading from a file and I want each of th...