Perl to remove text file entries???
I need to remove some er....evidence..of Internet usage. Fortunately the logs used to compile reports are in simple text file format. Can Perl be used to remove entries for certain IP addresses (i.e mine!)?
If so how?
Roger
If so how?
Roger
Scooby Regular
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
open file
read a line in..
if not instr "your"ip
then write out line to a dummy file
else
Endif
rename dummyfile sourcefile
dont know perl so cant help
read a line in..
if not instr "your"ip
then write out line to a dummy file
else
Endif
rename dummyfile sourcefile
dont know perl so cant help
Thread
Thread Starter
Forum
Replies
Last Post
alcazar
Computer & Technology Related
2
Sep 29, 2015 07:18 PM



