9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team,
Could you pls explain how export command works in below code:
for i in ${!SDV_*}; do
export $i
done
As per my understanding, if
SDV_1=test1;SDV_2=test2;test1=var1;test2=var2then in for loop below export will get executed.
export var1;export var2But, Will this... (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
{ # 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
5. Shell Programming and Scripting
Hi
I need help with a script to loop unitl the statement is true
done some thing like this
until
if
then
cp filename filename.anto
fi
done
Regards, (3 Replies)
Discussion started by: antointoronto
3 Replies
6. UNIX for Dummies Questions & Answers
Hallo everybody
I am having a shell script called auto_run.sh in that only the first line works.
the second line which has sed command is working only at the # prompt. not within the shell script. What could be the reason.
*... sed 's/ //g' KTI >abc works in another shell script without the... (6 Replies)
Discussion started by: naushad
6 Replies
7. UNIX for Dummies Questions & Answers
I have heard for a long time that in maybe 2039 Unix will no longer be useable due the length of the date value. Anyone know anything about this? (4 Replies)
Discussion started by: dhlopomo
4 Replies
8. UNIX for Dummies Questions & Answers
ok, i know the syntax that goes along with the Shutdown command... but my box never wants to ... well... shutdown.. it only halts, kills all the process's, stalls the comp to a complete stop, but does actually kill the monitor and/or shut off the physical computer. it will reboot properly though,... (3 Replies)
Discussion started by: 01000101
3 Replies
9. 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