10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have this code that sometimes return a false value and the code inside the if statement gets executed and error out. Any idea why? thanks.
So I set a debug and see what the value for $ScriptElapsedTime
Here is the value I got ScriptElapsedTime='03:20'. Base on this value the if... (10 Replies)
Discussion started by: nugent
10 Replies
2. Shell Programming and Scripting
Hi Friends,
I am trying a very simple thing to print through bash shell scripting using echo but failing. My script is-
A=Abha
B=Biha
C=2011
D=5
echo " The name is $A_$B$C0$D"
It should print-
"The name is Abha_Biha201105"
but it's printing something else. Is my script wrong?... (2 Replies)
Discussion started by: NARESH1302
2 Replies
3. Shell Programming and Scripting
I need to concatinate a string (mapping-expression) with the output of below statement
EXPRESS="cat //normalization-binding//tag-normalization/tag-name"
echo $EXPRESS | xmllint --shell QA_Oct12_DIR.cfb | grep -v "/ >" >> "/home/testBinding.txt"
above statement write value="$6061" into... (1 Reply)
Discussion started by: bkc
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
How do you echo something once when a find statement returns null results?
This is when using mutiple locations and mutiple arguments.
The below find command the inner loop of a nested for loop where the outter loop holds the $args and the inner loop holds the locations.
find... (2 Replies)
Discussion started by: tchoruma
2 Replies
5. Shell Programming and Scripting
I was searching for an option where i can echo some strings together with the contents of a file.
Eg. I was to echo the below string to a file
"alter application PMS_ add variable CurrYear Y2009;" >> ${ESS_MAXL_DIR}/PMS_SUB.txt
The value 2009 is coming from a file called date.txt without the... (3 Replies)
Discussion started by: Celvin VK
3 Replies
6. Shell Programming and Scripting
I have script like
echo -n FINISHED FEXP: ${TABLE2EXP}
echo $STATUS
I want the output of both the echo statement in one line
How can i do this (3 Replies)
Discussion started by: scorp_rahul23
3 Replies
7. Shell Programming and Scripting
Hello All,
I need to set the width or number of columns for my dynamic output in the echo statement.
statement is like:
echo " <output> "
here the <output> is dyamice and can be of any number of characters, the " " should always start in same column everytime it is... (4 Replies)
Discussion started by: s123.radha
4 Replies
8. Shell Programming and Scripting
Hi,
Can some1 help me to output a tab in an echo statement.
I have tried
echo "RNC: \t NODEB"
but dont get the correct output.
I am a beginnger to unix, so pls hold back the laughs....if u can (5 Replies)
Discussion started by: sunils27
5 Replies
9. Shell Programming and Scripting
Is there an equivalent perl statement for the following ksh statement ?
example
if
then
...
else
...
fi (2 Replies)
Discussion started by: gefa
2 Replies
10. Shell Programming and Scripting
Does anyone know the correct syntax for computing arithmetic expressions inside the echo statement? Let me know, thanks (3 Replies)
Discussion started by: circleW
3 Replies