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.
Looping - shell scripting
Name: camin Date: May 7, 2004 at 07:46:30 Pacific OS: SunOS 5.8 Generic_108528- CPU/Ram: unknown
Comment:
Hi All,
I need to write a script to find from dept1 to 45 = no. How do I go about doing this? Any help will be greatly appreciated. Thanks. camin
I am having a problem, your solution is OK, but maybe I did not explain correctly what I want to do: There are 27 fields in the db, and for the 27 fields the label is lets say dept1 to 27 and the value for each could be AA BB CC, but I need to go thru all 27 to get CC value and pipe the results into a file.... can you help? thanks camin
I don't understand what you mean by "There are 27 fields in the db". What db? What is a field?
0
Response Number 5
Name: camin Date: May 10, 2004 at 06:52:11 Pacific
Reply:
Hi William,
What I mean is that db is the database, this is like a database for bug tracking program, all defects are entered into here, and so on. So on one form there are these 27 fields that could have the value of 3 possibilities, AA, BB, or CC. Is this clear now...the counter could probably work.....I will try that again....
Summary: Hi, I'm trying to run loops in shell scripts using the following script. loop=1 while [ loop -lt 10 ] do echo 'this is my $loop text-line' loop='expr $loop + 1' done ---- but I'm getting error: test: ...
Summary: I have a text data file that has spaces between fields and looks something like:- tom mazda keith ford mary ford I'm trying to write a shell script that reads each line in the data file and puts each ...
Summary: Can anyone help me with this assignment. Write a shell script file to read 5 student names (First and Last name) and their grades using a while loop. Find the average, maximum and minimum of grades ...