Search Results

Search: Posts Made By: justlooks
2,823
Posted By justlooks
anyone can explain this?
why the case 2 will happen ? , ' should stop the history substitution ,shouldn't it?
case 1
# echo "123"|sed '/123/!d'
123

case 2
# echo "123
> 456
> 1
> "|sed '/123/!d'
-bash: !d': event...
1,213
Posted By justlooks
try this grep -o "Field[0-9]\+a" ufile
try this
grep -o "Field[0-9]\+a" ufile
1,572
Posted By justlooks
you can reference to camel book,chapter 20 ,it's...
you can reference to camel book,chapter 20 ,it's tell you how to use perl debugger
1,635
Posted By justlooks
are you look for this? awk '/Report for...
are you look for this?

awk '/Report for server/{aa=substr($6,2,length($6)-2);print ""}/^(Max\. )?Connections (count|available|in use)/{print aa" "$0}' ufile
8,534
Posted By justlooks
yes it works fine, and i perfer to this $...
yes it works fine, and i perfer to this

$ date -d '1 day ago'
Mon Feb 28 09:39:56 CST 2011
$ date
Tue Mar 1 09:39:58 CST 2011
5,878
Posted By justlooks
i think that you should log the time when your...
i think that you should log the time when your rsync command run into your log file ,like

time:
your rsync output
....
time:
your rsync output

====

that will be easy to analysis (use sed...
8,633
Posted By justlooks
perl is also powerful!! cat ufile|perl -p...
perl is also powerful!!

cat ufile|perl -p -ne 's/(?:(?<==)PAC)/PT/;'
1,739
Posted By justlooks
file 2 is also huge? ---------- Post updated...
file 2 is also huge?

---------- Post updated at 11:32 AM ---------- Previous update was at 11:23 AM ----------



file1 is big,so here O array is really a big array
4,042
Posted By justlooks
I prefer to use grep grep -o...
I prefer to use grep

grep -o "[+-]\?[0-9]\+\.[0-9]\+s" ufile
5,878
Posted By justlooks
I think that you should send rsync output into a...
I think that you should send rsync output into a temporary file ,and cron another script to check the temporary file , mail the result to your box,then empty the file
Showing results 1 to 10 of 10

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