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
chr1:109457160 1 109457160 99.1735537190083 +
chr1:109457233 1 109457233 99.1735537190083 -
chr1:109457614 1 109457614 99.1735537190083 +
chr1:109457618 1 109457618 100 +
chr1:109457943 1 109457943 100 -
chr1:109458224 1 109458224 99.1735537190083 -
If 6th column in... (3 Replies)
Discussion started by: johnkim0806
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
I have to evaluate multiple conditions with an 'or'.
Here is an example:
when i use the above i get a error message
Please help me to know if i am missing something in the syntax.
how do i achieve multiple "or" in the same if condition.
Thanks. (11 Replies)
Discussion started by: sunrexstar
6. UNIX for Dummies Questions & Answers
I am checking one until loop with the following logic
before running this i am exporting above variables to SUCCESS.But the loop is running in infinite loop.My requirement is to make the loop run until
all the 3 variables are SUCCESS or any of the 3... (2 Replies)
Discussion started by: dr46014
7. UNIX for Dummies Questions & Answers
I desperately need your help on my problem:-
I got a folder in my directory that has many files in it. Most of the file's name is starting with certain prefix. Eg: ABC, CDE, EFG, etc. I only want to change file name that is starting from certain prefix and the rest I want them to... (1 Reply)
Discussion started by: balzzz
8. Shell Programming and Scripting
i hav files ha1j ha2m ha3n ha4q ha5s ...like tat im having some 20 files ..and i want to create a folder as the same amount of files which im having wen the condition if loop is satisfied ..
thank you (5 Replies)
Discussion started by: maximas
9. Shell Programming and Scripting
could any one suggest me that how to determine if the first field is numeric and if it is greater than another number then from that point everything else should be printed using awk.
I have tried this
awk -v xxxx=$xxxxx '
if ( ( $1 !~ "^*$" ... (5 Replies)
Discussion started by: hitmansilentass
10. Shell Programming and Scripting
i have following if condition
above statement is case sensitive.....what is syntax if i have to make above comparision case insensetive (4 Replies)
Discussion started by: mahabunta