Hey all. I have a file that has roughly 115,000 lines in it. There are a few lines of information that I don't want in it, but I don't want to search through all of the lines to find the ones that I don't want. Is there a way to do a mass delete of the lines that I don't want?
Thanks for the... (4 Replies)
i have been doing this script to match every line in a current log file (access_log) with strings that i list from a path (consist of 100 of user's name ex: meggae )..
and then make a directory of every string from the text file (/path/meggae/) --->if it matched..
then print every line from the... (3 Replies)
We have a log file, the format is similar to this:
08/04/2011 05:03:08 Connection Success
08/04/2011 05:13:18 Connection Success
08/04/2011 05:23:28 Connection Fail
08/04/2011 05:33:38 Connection Success
08/04/2011 06:14:18 Connection Success
08/04/2011 06:24:28 Connection Fail
08/04/2011... (6 Replies)
Hi Experts,
I am very new to scripting and have a prb since few days and it is urgent to solve so much appreciated if u help me.
i have 2 files
file1.txt
9647810043118
9647810043126
9647810043155
9647810043161
9647810043166
9647810043185
9647810043200
9647810043203
9647810043250... (22 Replies)
Hello,
I tried to search on the site a way to delete lines on log files but I didn't find what I am looking for... I hope someone will be able to help me.
I do not know how to explain this, so I will do my best.
I have a log file and I want to delete all second lines.
Example :
... (3 Replies)
Anyone knows how to use AWK to achieve the following
Sun Feb 12 00:41:01-00:41:59 Success:2 Fail:2
Sun Feb 12 00:42:01-00:42:59 Success:1 Fail:2
Sun Feb 12 01:20:01-01:20:59 Success:1 Fail:2
Mon Feb 13 22:41:01-22:41:59 Success:1 Fail:1
log file:
Success
Success
Fail
Fail
... (9 Replies)
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
I have a log file as given below
012/01/21 10:29:02 (111111) Processing Job '23_369468343464564'
2012/01/21 10:29:02 (111111)
Making Job '23_369468343464564.0'...
2012/01/21 10:29:04 (111111)
Jobnumber '23_369468343464564' was successful
2012/01/21 10:29:04 ... (12 Replies)
On my solaris-10 box, there are two log files which are being used (written by) some application. Those are hige files of 3 gb and 5 gb. I tried to nullify it, but it shows me zero size and after few seconds it will show me its original size. "ls -ltr" shows me big size, but "du -sh file" shows me... (7 Replies)
Discussion started by: solaris_1977
7 Replies
LEARN ABOUT PHP
xslt_set_log
XSLT_SET_LOG(3) 1 XSLT_SET_LOG(3)xslt_set_log - Set the log file to write log messages toSYNOPSIS
void xslt_set_log (resource $xh, [mixed $log])
DESCRIPTION
This function allows you to set the file in which you want XSLT log messages to, XSLT log messages are different than error messages, in
that log messages are not actually error messages but rather messages related to the state of the XSLT processor. They are useful for
debugging XSLT, when something goes wrong.
By default logging is disabled, in order to enable logging you must first call xslt_set_log(3) with a boolean parameter which enables log-
ging, then if you want to set the log file to debug to, you must then pass it a string containing the filename.
PARAMETERS
o $
xh -The XSLT processor link identifier, created with xslt_create(3).
o $log
- This parameter is either a boolean value which toggles logging on and off, or a string containing the logfile in which log
errors too.
RETURN VALUES
No value is returned.
NOTES
Note
Please note that file:// is needed in front of the path when using Windows.
EXAMPLES
Example #1
Using the XSLT Logging features
<?php
$xh = xslt_create();
xslt_set_log($xh, true);
xslt_set_log($xh, getcwd() . '/myfile.log');
$result = xslt_process($xh, 'dog.xml', 'pets.xsl');
echo $result;
xslt_free($xh);
?>
PHP Documentation Group XSLT_SET_LOG(3)