10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm trying to write while loop with multiple if conditions. Each and every if condition with different variables. whenever one if condition fails i have remove the file
from filename and have to pick another file and loop should exit until the last file found in filename. Please help... (2 Replies)
Discussion started by: Kayal
2. Shell Programming and Scripting
Hi, I am new to UNIX. I am working on a script where it takes the input and produces a desired output and it works fine for one instance.
CREATE TABLE TAB1
CREATE UNIQUE INDEX XPKTAB1
CREATE TABLE TAB1
COL2... (8 Replies)
Discussion started by: varun2327
3. Shell Programming and Scripting
I want to read file multiple times. Right now i am using while loop but that is not working.
While read line
while read line2
#processing some data based on data.,
done < file2.txt
done < file1.txt # This will have 10... (4 Replies)
Discussion started by: tmalik79
4. Shell Programming and Scripting
I'm writing the for loop script in home directory and wanted to get the files from /etc/data directory.
for test_data in $file_nm/fln*
the code is executing successfully , but in the output it is showing
... (6 Replies)
Discussion started by: smile689
5. Shell Programming and Scripting
Any reason why this thing doesn't works in Korn Shell
for (( expr1; expr2; expr3 ))
..... ... repeat all statements between do and done until expr2 is TRUE Done
TS (4 Replies)
Discussion started by: targetshell
6. Shell Programming and Scripting
I need an echo "hit enter" running every 3 seconds till user hit enter key.
10x (1 Reply)
Discussion started by: LiorAmitai
7. Shell Programming and Scripting
i have a for loop statement in my ksh code. it only returns the first value retrieved not the value for the other rows.
ex: acct_id value = returned value in the for loop
1 = 1
2 = 1 (instead of 2)
3 = ... (1 Reply)
Discussion started by: ryukishin_17
8. Shell Programming and Scripting
I want to write a while loop like this can any one say me whats wrong with my loop
(( CMD_JUL = LSD_JUL - i ))
done (1 Reply)
Discussion started by: bhagya2340
9. Shell Programming and Scripting
I need to take some command line arguments for my script and then want to run a function for each argument.I thought of using for loop as below, but its not working , can some one please help...
echo "$lpar1" >>lpar.txt
echo... (4 Replies)
Discussion started by: prashant43
10. Shell Programming and Scripting
got this silly problem and i just can't seem to make sense of the error message its is saying 1400: cannot open. its my first time at writing a while loop but tried all sorts to get it working without success.
... (3 Replies)
Discussion started by: scriptingmani