01-07-2002
okay - makes sense... no use apending though as you'd just be increasing that log file.
Depends how keen you are to keep the last few entries....if you don't care about that - then you have your answer....if you do - then you could hack it or someone else could explain how to delete the head off a text file?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
My problem is i have to remove some log files in specific named directories on a regular basis using shell scripts. What i want my shell script to do is i give the shell script some listing of directories from which to delete all log files recursively.
Can anyone please help me.
... (2 Replies)
Discussion started by: sameervs
2 Replies
2. UNIX for Dummies Questions & Answers
I've walked into a while loop gone bad.....which has created 100k+ log files.
Is it quicker removing the files with rm pattern* or actually removing the entire directory with rm -rf dir/
It's taking ages (hours) either way ...just curious if one is goig to be quicker than the other...or is it... (8 Replies)
Discussion started by: peter.herlihy
8 Replies
3. Shell Programming and Scripting
Is there an easy way to delete the first so many lines in a log file?
like I have a log file that has 10000 lines, i want to just get rid of the first 9000. (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
4. Shell Programming and Scripting
Hello,
Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days.
Any help will be highly appreciated.
Thanks,
Pulkit (4 Replies)
Discussion started by: pulkit
4 Replies
5. Shell Programming and Scripting
I am trying to create a Korn Shell script to be run every 5-10 minute from a crontab. This script needs to look for log files (transaction_<date>.log). If there are more than 5 such files, it needs to delete all but the most current 5. How often these files are create varies - can be every minute... (2 Replies)
Discussion started by: WmShaw
2 Replies
6. Shell Programming and Scripting
Hi Folks,
I have a apache log file that has double entries (however not all lines appear twice).
How can I delete automatically the first line of a double entry?
Your help is greatly appreciated.
Thanks,
Klaus
Here is what the log file looks like
217.81.190.164 - - "GET... (7 Replies)
Discussion started by: opusforum
7 Replies
7. Shell Programming and Scripting
Hi All,
I have a big log file i want to delete all characters (between 350th to 450th characters) starting at 350th character position to 450th character position.
please advice or sample code. (6 Replies)
Discussion started by: rajeshorpu
6 Replies
8. UNIX for Dummies Questions & Answers
In our shop, we have a situation where a log file from our interface engine software has begun maxing out in file size (reaching the 32-bit "2147483647" limit). Currently, the only way to rectify this is to stop the interface and restart it, which generates a new log. Easy enough, but the... (6 Replies)
Discussion started by: rjhjr64
6 Replies
9. Shell Programming and Scripting
Hello,
This is my first post. Nice forum!
I have a file trls.results
small exemple of content (actually the file can be very big):
./security/htaccess.htm ./security/ipcount.log ./adhoc/sql/datamod06.sql
So there is 3 paths to 3 different files... I want to remove every string that has a... (9 Replies)
Discussion started by: Jacob106106
9 Replies
10. Shell Programming and Scripting
Hello Community,
sorry iam from germany and my englisch is not so well.
iam searching for less then 4 hours on the web for a solution of my problem.
i have a proxy-log-file and want to delete lines wicht matches on two words.
example of the line in the logfile:
now i want to delet... (3 Replies)
Discussion started by: matze
3 Replies
LEARN ABOUT DEBIAN
ludevit
LUDEVIT(1) General Commands Manual LUDEVIT(1)
NAME
ludevit - converter from standard Slovak into L. Stur version
SYNOPSIS
ludevit [options][file]
DESCRIPTION
This manual page documents the ludevit command.
ludevit converts text from standard Slovak into the verion designed by L. Stur.
OPTIONS
-h --help
Show help and exit.
-D --nfkd
Normalize the output text to NFKD unicode normalization
-d --nfkd-hack
Normalize the letters d and t with caron to NFKD unicode normalization, keep the rest in NFKC.
-eENC --encoding=ENC
Use ENC as input/output encoding. While you can use any encoding supported by python, probably only one of utf-8, iso8859_2,
cp1250, cp852 or mac_latin2 makes sense.
-oFILE --output-file=FILE
Instead of standard output, write the translated text to the FILE
USAGE
ludevit acts as a filter, reading by default UTF-8 encoded text from the standard input and writing UTF-8 encoded text to the standard out-
put. Alternatively, if a file name is given as an argumet, ludevit will translate this file (in UTF-8 encoding).
NOTE
Due to technical restrictions, the program is actually installed under the name ludevit.
AUTHOR
Radovan Garabik <garabik @ kassiopeia.juls.savba.sk>
2006-11-04 LUDEVIT(1)