9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Team,
I need to know why ppl use If true loop instead of just writing down the sequence of code lines.
1:
echo "Line1"
if true; then
echo "Line2"
fi
echo "Line3"
2:
echo "Line1"
echo "Line2"
echo "Line3"
Could you explain what does the if true loop make difference in 1st compare... (3 Replies)
Discussion started by: chandana hs
3 Replies
2. Shell Programming and Scripting
Hello Admin,
Could you pls explain on the below behavior of the awk command.
$ awk -F">20" "/Cyclomatic complexity/ && /;add;/{print \$1}" inspect_64d_369980 | awk '{print $NF}' | sort | tail -1
65
$var=`awk -F">20" "/Cyclomatic complexity/ && /;add;/{print \$1}" inspect_64d_369980 | awk... (3 Replies)
Discussion started by: chandana hs
3 Replies
3. Programming
can anybody explain a
long fpathconf(int fildes, int name);
what it do
like
1- lim = fpathconf(STDIN_FILENO, _PC_NAME_MAX);
printf("%s %ld\n", "_PC_NAME_MAX: ", lim);
2- lim = fpathconf(STDIN_FILENO, _PC_PATH_MAX);
printf("%s %ld\n", " _PC_PATH_MAX ", lim);
3- lim =... (1 Reply)
Discussion started by: fwrlfo
1 Replies
4. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
5. Shell Programming and Scripting
{ # print NF,NR,$0;
if ( ($(NF-1) != 0) && ($NF != 0) )
{if ($(NF-1) > $NF)
{percent=$(NF-1)/$NF-1;}
else
{percent=$NF/$(NF-1)-1;}
}
printf "%8.4f\%\n",percent*100;
if (percent > 0.05||percent < -0.05 ){exit 1;}
}'
Use code tags please, ty. Also try to use a more... (1 Reply)
Discussion started by: bosmat shani
1 Replies
6. Shell Programming and Scripting
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Discussion started by: rajan_san
4 Replies
7. UNIX for Advanced & Expert Users
Hi all,
Want to know what does export command do??
What is its functionality?
And on a shell prompt
$at=1
$ echo $at
1
The variable above is it available to other script??? (3 Replies)
Discussion started by: prakash.kudreka
3 Replies
8. Linux
Hi, I'm new to LINUX Scripting, I would like to know the full explaination of the below scripts.
thank you.
1st script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
`testrecord.scp`
`testEXGU.scp`
2nd Script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
cd... (1 Reply)
Discussion started by: AudreyEliza
1 Replies
9. UNIX for Dummies Questions & Answers
Is there any difference between these 2 commands :-
export var="a"
and
var="a"
export var (2 Replies)
Discussion started by: radhika03
2 Replies