10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
if ]; then
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
Discussion started by: Priya Amaresh
2. Shell Programming and Scripting
Input file (4 DATA record shown in this case):
VERSION AA0110 GI:157412239
position ... (5 Replies)
Discussion started by: perl_beginner
3. Shell Programming and Scripting
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Discussion started by: jao_madn
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
Discussion started by: soumyabubun
5. Shell Programming and Scripting
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
6. Shell Programming and Scripting
Below is my code which gives output like this: Every time we have to open the script file and change the value of TG in BEGIN. what i want to do is
that i give two three values at the sametime and then run the script and
it gives output one by one at the same time.
I think i have to define... (2 Replies)
Discussion started by: wakhan
7. Shell Programming and Scripting
Hello guys I am new to awk programming. I need the below required script which can perform the following.
I have a file containing below data.
SNA NoCRD = 131
SNA OBarr = 3
SNC NoCRD = 76
SNC OBarr = 1
SND NoCRD = 155
SND OBarr = 5
SNE NoCRD = 100
SNE OBarr = 1
SNF NoCRD = 131
SNF... (2 Replies)
Discussion started by: jurial
8. Shell Programming and Scripting
i have a variable with lots of tokens seperated with spaces.
e.g VAR="ABC DEF GHSD GHQS TUTSD JHDTQ QDHQ CDQKDGQ WQUTQD DQUTQD DQJGDQ QDTQD WDQUTQDU QDUGQD QDJGQD DQUTDUQ QDUIDTQ"
i want to separate all of the above tokens and call a script with each of the token e.g sh script.sh <TOKEN>... (4 Replies)
Discussion started by: skyineyes
9. UNIX for Dummies Questions & Answers
Please help me in the following query
need a command to get all the files in the present directory except the next day file
format :: abc_<DD>.log
Now i need the output in abc.list which should contains
abc_10.log... (5 Replies)
Discussion started by: thaduka
hi i am new to c programming and found this on the net could someone tell me what it actually does, many thanks in advance cheers
fd = open("in1", O_RDONLY);
and this too please
int... (1 Reply)
Discussion started by: ruffenator