Re: remove comment lines from .txt file
- From: gordonb.q9jvy@xxxxxxxxxxx (Gordon Burditt)
- Date: Tue, 09 Dec 2008 21:05:18 -0600
Right. In an editor that has Regex find/replace (like vim):
:%s/^#.*$//g
will remove all lines that begin with #
That command will not *remove* any lines.
Empty lines may or may not be acceptable to whatever is importing
this file to a database. Most of them will probably at least
generate a complaint about missing fields.
.
- References:
- remove comment lines from .txt file
- From: Michael
- Re: remove comment lines from .txt file
- From: houghi
- remove comment lines from .txt file
- Prev by Date: Re: PHP4 on Ubuntu8.04 - compiling PHP4 with sybase_ct errors
- Next by Date: Re: i can't call subversion from php with shell_exec()
- Previous by thread: Re: remove comment lines from .txt file
- Next by thread: Re: remove comment lines from .txt file
- Index(es):
Relevant Pages
|