10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can someone please help me to learn how to deal with loops, arrays and grep?
I have two arrays (lets say I and j) each in a separate file
And have file with lines of data I need to extract, such as
Ruby Smith: some text here
Ruby Smith: some other text here
Ruby Brown: some text here
Ruby... (10 Replies)
Discussion started by: A-V
if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Discussion started by: omega666
3. Shell Programming and Scripting
I want to execute a script the number of times a user enters. Please can you advise on hor can I do the same.
Shazin (4 Replies)
Discussion started by: Shazin
4. Web Development
I have an SQL query that's pulled back user IDs as a set of columns. Rather than IDs, I want to use their names.
So I have an array of columns $col with values 1,7,3,12 etc and I've got an array $person with values "Fred", "Bert", "Tom" etc
So what I want to do is display the... (3 Replies)
Discussion started by: JerryHone
5. Shell Programming and Scripting
i have an array called ARRAY which has elements in it... i am trying to assign elements of ARRAY to master_array..
i get a =: command not found error..
is there something i am missing? (4 Replies)
Discussion started by: npatwardhan
6. Shell Programming and Scripting
Ok, I've already completed the task this is for, but now I'm trying to go back and find more eloquent solutions for future reference. I have a report I've generated that is formatted like this:
The first number is... (3 Replies)
Discussion started by: DeCoTwc
7. Shell Programming and Scripting
A= a c b t g j i e d
B= t y u i o p
for i in $(cat $A)
for j in $(cat $B)
then (1 Reply)
Discussion started by: vadharah
8. UNIX for Dummies Questions & Answers
I'm trying to create a loop that will prompt the user for 15 values, not forcing them to enter all 15. If the user enters through one or more of the prompts the null value needs to be converted to 0, otherwise set the parameter = to the value entered:
Please enter file no #1: 17920
... (4 Replies)
Discussion started by: vdc
9. Shell Programming and Scripting
I am running on HPUX using ksh.
I have a script that uses a loop within a loop, for some reason the script seems to hang on a particuliar record. The record is fine and hits the condition in Blue. If I kill the 1st loop process the script continues on with no problem.
<Some... (8 Replies)
Discussion started by: bthomas
10. Shell Programming and Scripting
I am trying to write a script which will loop until a certain action has been performed. I have two files i would like to compares.
file1 has a list of user ids (about 900) from the company's e-mail server.
file2 has a list of user ids (about 50 or so) from... (7 Replies)
Discussion started by: muzica