10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have if loop with multiple variable value check in if loop. How can i print only if loop satisfied variable and its value in shell script ? I dont want to check each variable in if loop. That makes my script larger.
echo "Only satisfied variable with value"
... (3 Replies)
Discussion started by: prince1987
2. Shell Programming and Scripting
i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues.
-------... (8 Replies)
Discussion started by: raju2016
3. Shell Programming and Scripting
How do we execute a command inside a while loop? (7 Replies)
Discussion started by: Little
4. Shell Programming and Scripting
Please excuse me for opening a new thread i am unable to find out the syntax error
in my if else condition inside for loop in awk command ,
my actual aim is to print formatted html td tag when if condition (True) having string as "failed",
could anyone please advise what is the right... (2 Replies)
Discussion started by: karthikram
5. Shell Programming and Scripting
I have an input file at ./$1.txt
with content of seq numbers like :
I need to take each seq nbr from the input file ,run the query below:
select ackname,seqnbr from event where event_text like '%seqnbr( from the input file)'
and redirect the... (11 Replies)
Discussion started by: rkrish
6. Shell Programming and Scripting
I tried this:
for region in 'raj' 'kt' 'kol' 'krl' 'chn' 'dl' 'hr' 'bih' 'ap'
sqlplus -s huw$region/`echo $region`huw#321@huw$region<<!
set serveroutput on
select count(*) from tcd_preferred_cust_201109
but the error shows like:
Syntax error at line 4 :... (1 Reply)
Discussion started by: deepakprasad29@
7. Shell Programming and Scripting
I run my program prog.c in the following way :
$ ./prog 1 > output.txt where 1 is a user defined initial value used by the program.
But now I want to run it for many a thousand initial values, 1-1000, and store all the outputs in different files.
$ ./prog 1... (1 Reply)
Discussion started by: alice06
8. Shell Programming and Scripting
in one of my script..I have some thing like
john:christina : one::
and i want to make it like
basically change 'one' to 'two' and run date :command and add other name: (30 Replies)
Discussion started by: Learnerabc
9. Windows & DOS: Issues & Discussions
below is the output where i'm getting the same times tamp throughout the loop., where i'm expecting that to log the current time stamp..
C:\Users\ilango>for /l %i in (1,1,5) do echo for %i
C:\Users\ilango>echo for 1
C:\Users\ilango>echo for 2
C:\Users\ilango>echo... (1 Reply)
Discussion started by: ilan
10. Shell Programming and Scripting
'read' command is not working inside the while loop, How can I solve this?
Sharif. (2 Replies)
Discussion started by: sharif