Results 1 to 1 of 1
- 02-02-2013, 08:44 PM #1
Member
- Join Date
- Feb 2013
- Posts
- 1
- Rep Power
- 0
Removing characters from web log file
Hello
I want to remove certain characters from a web log text file
the text file contains more than 10000 lines..
sample lines s given below
128.217.62.29 - - [17/Aug/1995:14:29:09 -0400] "GET /images/USA-logosmall.gif HTTP/1.0" 200 234
128.217.62.29 - - [17/Aug/1995:14:29:10 -0400] "GET /images/WORLD-logosmall.gif HTTP/1.0" 200 669
128.217.62.29 - - [17/Aug/1995:16:21:27 -0400] "GET /ksc.html HTTP/1.0" 200 7131
128.217.62.29 - - [17/Aug/1995:16:21:28 -0400] "GET /images/ksclogo-medium.gif HTTP/1.0" 200 5866
I want to remove the characters and i hav to get output like this
128.217.62.29 17/Aug/1995:14:29:09 -0400 GET /images/USA-logosmall.gif HTTP/1.0 200 234
128.217.62.29 17/Aug/1995:14:29:10 -0400 GET /images/WORLD-logosmall.gif HTTP/1.0 200 669
here the characters "-" "[" and double quotes have to be removed..
Please can anyone give me the code for this
Thank You
Similar Threads
-
Issue With Removing Characters
By ezkatz19 in forum New To JavaReplies: 6Last Post: 01-27-2012, 07:12 AM -
Removing characters in an array
By dru36 in forum New To JavaReplies: 6Last Post: 11-27-2011, 01:56 PM -
Removing escaped characters from strings
By Opid in forum New To JavaReplies: 1Last Post: 10-06-2011, 02:42 AM -
Removing a word from a txt file
By MiitchKay in forum New To JavaReplies: 3Last Post: 06-02-2011, 04:45 PM -
Removing characters
By kDude in forum New To JavaReplies: 3Last Post: 12-03-2007, 03:38 AM
Bookmarks