I installed sarg from sarg rpm and i am facing issue while generating sarg reports and getting this time different error below
sarg -l /var/log/squid/access.log
SARG: Records in file: 242332, reading: 0.00%
SARG: Records in file: 242332, reading: 2.06%
SARG: Records in file: 242332, reading: 4.13%
SARG: Records in file: 242332, reading: 6.19%
New to unix. I have a couple files of 5 million records. I have a key field on those records. I have about 300 keys that I need to remove off the file, and I don't want to write a program to do it. I have used grep -v in the past and that works great for a few records, but I can't see myself having to do that 300 times/file.
Is there an easier way using grep, egrep, sed/awk, etc....
I have a file with dups records (dups are in columns).
Hi all
I have a requirement where i have to develop a file compare tool.
Requirement:
I have one expected file and one actual file. Both the files are database dumps in a csv file comma seperated.
Hi,
I need to correct line breaks for huge files (more than 1MM records in a file) and then format it properly.
Except the header and trailer, each record starts with 'D'.
Requirement:Scan the whole file except the header and trailer records and see if any of the records start with anything other than 'D'.
I have a Heroku app and a domain that maps to it. The host records are set up as follows:
Now I want email to admin@mydomain.com to be forwarded to my gmail account. I was told by the support for my domain name registrar that since I'm using CNAME records that's not possible as the MX records will be overridden by the CNAME records. Is that true? If so how can I work around it?
Hi
I have a big txt file containing 3000 records, please help to split into multiple file by 1000 records for each file.
one line contain 1 record.
if line/record reached 1000 line it will create a new file.
Every file should contain 1000 records/line.
many thanks
Hi,
One of the program creating a file with the following information.
$cat a.txt
1, AAA, 234
$
and I wrote a script whenever any of the the file exists with data then it will send a email to me.
If I start the job second time, then the as per the logic it is sending the same data, I would like to write a script which will check if the same data is already sent in the previous mail then it sho
Input:
Code:
2.58359023380340e+02
1.43758864405595e+02
-7.65700666212508e+00
1.06460208083228e+02
1.26185441783936e+02
-3.41389169427027e+01
-1.40393299309592e+02
-3.07758776849508e+01
1.45067703495838e+02
1.79405834959073e+02
5.06666234594205e+01
OUT
Code:
2.0105894389e+02 (average of record 1 +2)
1.1632282493e+02 (average of record 3+4)
etc.
I need a script that takes e