Search Results

Search: Posts Made By: lunaticdawn
1,100
Posted By lunaticdawn
Hi Chubler_XL Thanks for the reply, but do...
Hi Chubler_XL

Thanks for the reply, but do you mean "rsync" the hold folder?

Because there are many files in the folder, directly "rsync" the hold folder would take a long time, and the...
1,100
Posted By lunaticdawn
Question on sync 2 folders with checking files' modify date
Hi Linux Community

I would like to ask about how to compare files in deferent server with date.
Those A and B servers has the same folder, I have write a sample script to "ls" both folders and...
2,741
Posted By lunaticdawn
wow you are an awk genius!! it work perfectly!! ...
wow you are an awk genius!! it work perfectly!!

may I ask how it works? NF i know its number of fields, NF-2 means last 2 field right?

it automatically create the output files its so magic,...
2,741
Posted By lunaticdawn
Thanks Scrutinizer /Mozilla/{print>moz} ...
Thanks Scrutinizer

/Mozilla/{print>moz}
this one exactly can do what I want!! just a simple {print>xxx}:eek:!!!

awk -f browser.awk server.log
browser.awk
moz = /home/lunaticdawn/moz,txt...
2,741
Posted By lunaticdawn
Thanks Scrutinizer as your advice, solved a...
Thanks Scrutinizer

as your advice, solved a syntax error, but still got a syntax error on the " > "

I tried a few times, like ">>", insert { }, still cannot solve it

the print function is...
2,741
Posted By lunaticdawn
Hi, Scrutinizer that's a typing mistake on...
Hi, Scrutinizer

that's a typing mistake on the post sorry

I erased the "END" and it still has syntax error

awk: browser.awk:1: /Mozilla/ {print $0} > /home/lunaticdawn/log/mozilla.txt
awk:...
2,741
Posted By lunaticdawn
Thanks for the help guys, I think using "awk" to...
Thanks for the help guys, I think using "awk" to do the things that "grep" is a little bit stupid but I wanna try to learn more about "awk"

Now I'm gonna upgrade it to do more complicated task, my...
2,741
Posted By lunaticdawn
Thanks Franklin, It really solved my...
Thanks Franklin,

It really solved my problem, I noticed:

awk -v Var1="$1" '$0 ~ Var1' $path$filename > $destpath${1}/process.log

I'm not so understand the '$0 ~ Var1' what is $0 for? Is it...
2,741
Posted By lunaticdawn
Using "awk" with other variables from the same script
Hello all,

I'm just start using "awk" for my log processing script, actually I just use awk for grep things:

awk '/projectA/ {print;}' /usr/local/tomcat/log/server_access_log.txt >...
4,649
Posted By lunaticdawn
One of my project is to do traceroute log...
One of my project is to do traceroute log analyzing, if there is a result more than 200ms then the script has to output the current traceroute to another log file.

the traceroute log look like...
4,649
Posted By lunaticdawn
How to process log file line by line?
Greetings, I'm new to this forum, also new to shell script

I have done some simple shell script before, like backup linux machine using rsync and crontab, but now I need to do some log analyzing,...
Showing results 1 to 11 of 11

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