Search Results

Search: Posts Made By: proactiveaditya
2,279
Posted By balajesuri
if [ `sed...
if [ `sed "s/.*\(ernie-1328697839.1233158\).*/\1/" mysql.log | wc -l` -ge 5 ]; then echo yes; fi
4,651
Posted By admin_xor
This entirely depends on the perspective the...
This entirely depends on the perspective the program is looking from. Not only free top, people found discrepancies among the outputs of sar -r, vmstat, ps aux.

But, as far as my knowledge goes,...
2,279
Posted By admin_xor
Suppose you have the log ina file called "file",...
Suppose you have the log ina file called "file", here's the code you want to execute:
awk -F "'" '{ print $2 }' file | awk -F "-%" '{ print $1 }'
6,366
Posted By Corona688
^ and * have special meanings in perl regular...
^ and * have special meanings in perl regular expressions, too.

Escape them!
6,366
Posted By Corona688
^ and * still have special meanings to grep. ...
^ and * still have special meanings to grep. Escape them.
18,777
Posted By balajesuri
A single double-quote would suffice in tr. |tr...
A single double-quote would suffice in tr.
|tr -d '"'
18,777
Posted By guruprasadpr
^M should be put like: Press Ctrl and V, still...
^M should be put like: Press Ctrl and V, still holding Ctrl, press M

did you do this way?

Guru.
18,777
Posted By guruprasadpr
looks like there are some control characters....
looks like there are some control characters. Redirect the output after the awk command to a file, and show us the output using cat -ve option.

I mean:

find /test/ -name "x*.cfg"|while read i;...
18,777
Posted By guruprasadpr
sed 's/"//g' file Guru.
sed 's/"//g' file

Guru.
12,547
Posted By balajesuri
Yup, that too is good. You may shorten it as...
Yup, that too is good. You may shorten it as egrep -Hr If you remove $ at the end, it would also match 10.1.1.300, as the first pattern in round parenthesis [1-9] would match 3 and so would show that...
4,419
Posted By radoulov
The output that passes through the pipe is...
The output that passes through the pipe is buffered, I suppose you just need to wait until the buffer gets flushed ...
(just add some more lines and you should see the script working).
4,419
Posted By radoulov
Remove the quotes: ERROR*memory
Remove the quotes:

ERROR*memory
8,732
Posted By rbatte1
Did this deliver what you need, or can I help...
Did this deliver what you need, or can I help some more?
8,732
Posted By rbatte1
The supplied command sar it probably what you are...
The supplied command sar it probably what you are after. If you are after the value since last boot, just fire it off without parameters. Depending on your installation, you may get hourly or 5...
3,281
Posted By bakunin
"-h" is "human readable" on Linux systems (which...
"-h" is "human readable" on Linux systems (which nowadays usually means "display in Gigabytes").

On AIX systems you could use "-k" instead to get the values displayed in units of kilobytes or...
3,505
Posted By theninja
use nohup scriptname &
use
nohup scriptname &
Showing results 1 to 16 of 16

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