Search Results

Search: Posts Made By: saurau
1,336
Posted By anbu23
$ awk -F':' '/PoolManager name/{ nm=$2 } /Total...
$ awk -F':' '/PoolManager name/{ nm=$2 } /Total number of connections/ { sub(".max.*",X,$2); print nm $2 } ' file
jdbc/AntalisUK.XA 1
jdbc/AntalisDE.XA 0
1,336
Posted By RudiC
This might do what you want:awk -F: 'NR==1 ...
This might do what you want:awk -F: 'NR==1 {print HD
HDCnt=split(HD, HDArr)
HDCM=FS HD FS
...
1,234
Posted By Scrutinizer
And a single = instead of ==
And a single = instead of ==
1,234
Posted By Scott
Your if statement has one opening [ and two...
Your if statement has one opening [ and two closing ]]. You also need a space after [ and before ].

There's also an unnecessary use of echo and backticks:

TODAY=$(echo `date +"%b%d"`)

Could...
4,552
Posted By Chubler_XL
How about something like this: #!/bin/sh ...
How about something like this:

#!/bin/sh
LOGFILE=/tmp/start-mws-servers.log
SCRIPT_DIR=~/bin

logmsg () {
echo $(date): $1 >> $LOGFILE
}

while read instance
do
if [ -x ...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 02:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy