Re: remove comment lines from .txt file



Michael wrote:
Hi all,

I wonder what is the best way to remove comments from txt file. I have
pretty big (about 100mb) .txt file with some comment lines at
beginning and want to clean it up. My first idea was to read file with
fget and if line does not begin with # write to new file, then rename.
Is it possible to do that without reading hole file?

If it is only one file, why not do it by hand?

houghi
--
This was written under the influence of the following:
| Artist : Jimi Hendrix
| Song : Voodoo Child (Slight Return)
| Album : Band Of Gypsys_ Live At The Fillmore East
.



Relevant Pages

  • Re: Anyone know who sung that version of Hallelujah at the end of House last night??
    ... >Michael Schey wrote: ... I just listened to the sample on Amazon. ... >> Jeff Buckley is one of those artists that I have known about for years ... there's a remastered album out? ...
    (rec.music.artists.springsteen)
  • Re: Tuck Spanks His L-5
    ... Michael L Kankiewicz wrote: ... the album. ... ego to the musical situation and to play the song. ...
    (rec.music.makers.guitar.jazz)
  • MICHAEL DORET ON THE NEW COVER
    ... Here are some excerpts from a recent Deuce News interview with Michael ... designer of the classic "Rock N Roll Over" album cover. ... Michael's latest design, the brand new KISS Album cover, will be ... soft focus photos of Paul, Gene, Tommy and Eric, and transform them ...
    (rec.music.artists.kiss)
  • Re: OT: Music trivia..
    ... can answer these, if you use google, please don't post the answers.. ... Michael and Micky Gilley? ... some of the songs include scatterbrain, air blower, and ... My alltime favorite album, ever... ...
    (rec.boats)
  • Re: Jazzis Web Shop News 03/2007
    ... something I just couldn't resist - the new live album by ... LANDAU, MICHAEL / GROUP ~ LIVE ... this new album is a most welcome addition. ...
    (rec.music.bluenote)