10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
my script likes below
if ;then
if ; then
exit 30
fi
if
for loop
do
done
I want to if condition1 is true, it exit the execution the script completely with error code 30. but right now it still exe for loop.
I try to add below
if ;then
if ; then
... (3 Replies)
Discussion started by: ken6503
3 Replies
2. Shell Programming and Scripting
HI
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
like
if ]; then
return 0
fi
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 Replies
3. Shell Programming and Scripting
if
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 -
file1.txt
If 6th column in... (3 Replies)
Discussion started by: johnkim0806
3 Replies
4. Shell Programming and Scripting
Good afternoon!
I am a perl newbie. I hope you will be patient with me.
I have a script that needs to be written in perl. I can't do it in awk or shell scripting.
Here is the script:
#!/usr/bin/perl
use POSIX qw(strftime);
use FileHandle;
use Getopt::Long;
use IO::Handle;... (0 Replies)
Discussion started by: brianjb
0 Replies
5. UNIX for Dummies Questions & Answers
I have a directory containing thousands of items “video files”, these items were generated by an application, which generates two items with the same name but with different extensions “.avi and .mp4”. There was a tool in my application to remove one item @ a time. Later I found this tool removes... (5 Replies)
Discussion started by: awadeid
5 Replies
6. Shell Programming and Scripting
hi,
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
3 Replies
7. HP-UX
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
2 Replies
8. Shell Programming and Scripting
i have two files as
file1:
1
2
3
file2:
a
b
c
and the output should be:
file3:
1~a
2~b
3~c (1 Reply)
Discussion started by: mlpathir
1 Replies
9. Shell Programming and Scripting
Hi
how to write this:
if
then
usage
fi
thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
10. Shell Programming and Scripting
i have following if condition
if
above statement is case sensitive.....what is syntax if i have to make above comparision case insensetive (4 Replies)
Discussion started by: mahabunta
4 Replies