Re: Script to strip lines from files
- From: Christian Hansen <i.dont@xxxxxxxxxxx>
- Date: Tue, 10 Jan 2006 13:46:02 -0600
Christian Hansen <i.dont@xxxxxxxxxxx> wrote in
news:Xns9742C1E2EF074idontwantemail@xxxxxxxxxxxxxxx:
> I would apreciate som help making a script that be run from cron and can
> strip lines from files in the work dir.
>
> I want the files to only be able to have a certain number of lines (say
> five) that start with "IP" . If the file has more I would like the script
> to strip the first instance of "IP" until the file only contains five.
>
>
>
>
> CH
>
Another concept is that I would like the same script to also remove all
lines containing an IP without ident.
"IP *@127.0.0.1" would get removed and "IP myid@xxxxxxxxx" would be left
untouched.
Thanks.
CH
.
- Follow-Ups:
- Re: Script to strip lines from files
- From: Ed Morton
- Re: Script to strip lines from files
- References:
- Script to strip lines from files
- From: Christian Hansen
- Script to strip lines from files
- Prev by Date: Re: recursively kill the childs of a process
- Next by Date: Re: Output in raws, not columns
- Previous by thread: Re: Script to strip lines from files
- Next by thread: Re: Script to strip lines from files
- Index(es):
Relevant Pages
|