View Single Post
Old Jan 25th, 2005, 1:43 PM   #1
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
removing certain lines from a file

Hey all, I have a script that parses my weblog, but it skips some lines cuz they're too long something.
i use this command to find the line numbers that were skipped
cat webdruid.log | awk '/Log file/ {print $5}' | cut -d ':' -f1
now i was planning on just loading all lines individually, and then deleting the lines that matched a number of the output of the awk. But is there a better way of deleting those lines, because there are about 35000 to go through. Although only about 100 to delete.

TIA

Dizz
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote