10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
diffcount=`awk 'BEGIN { while ( getline < "/scripts/matt/text.server1.reference" ) { arr++ } } { if (!( $0 in arr ) ) { print } }' $TMPDIR/$(basename $0 .sh) | wc -l`
if ]; then
OK="OK - No change in the interfaces status"
elif ]; then
DIFF=`awk 'BEGIN {... (4 Replies)
Discussion started by: nms
4 Replies
2. Shell Programming and Scripting
guys,
i would like to know what does the below does.
tr=`echo $bfile | cut -d"." -f4`
tr=${tr#TR}
i tried with assigning a value and executed second line. but after that also value of tr remains same.
thanks in advance .. (1 Reply)
Discussion started by: expert
1 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I am using a simple loop:-
for PID in `ps -auxww| grep -v grep | awk '{print $2}'`
do
echo "Found : $PID : Killing..."
kill -9 ${PID}
done.
I want to know what will be the difference for killing the PID by using :-
${PID} , $PID, `$PID` and '$PID'.
I want to... (4 Replies)
Discussion started by: Raj999
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need a help in setting scope of the variable. I want to use the below logic right before the "break" statement
if ; then
echo $header
echo $trailer
fi
But due the scope of the variable it is causing issues. I tried using "export" statement. But it changes the output completely
... (0 Replies)
Discussion started by: Prem148
0 Replies
5. Shell Programming and Scripting
Hi All
I am not able to understand the usage of d# in the below variable declaration.
FILE_LOC contains the directory path
And also help me to know about what will be saved in the variable j.
Thanks!!!
j=${d#${FILE_LOC}/} (2 Replies)
Discussion started by: mohanm
2 Replies
6. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
7. Shell Programming and Scripting
I'd like to extract the temps from the following command via a series of sed statements but the actual syntax is beyond me.
$ nc localhost 7634 ... (2 Replies)
Discussion started by: audiophile
2 Replies
8. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
9. UNIX for Advanced & Expert Users
Hi I have to use a Environment variable and that variable has $ prefixed to its name like,
$var=/home/source/test/
i need to use the variable as i have show above. :confused:
Help requested..... Thanks in advance... (6 Replies)
Discussion started by: shreekrishnagd
6 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a .test file which has:
#!/bin/ksh
export TEST_FLAG=1
In the test1.ksh i have:
#!/bin/ksh
. .test
echo $TEST_FLAG
When i execute the test1.ksh its showing the value as 1.
But if i refer the same variable in another script, the value is not 1.
Basically, I need to have... (1 Reply)
Discussion started by: risshanth
1 Replies