Re: remove comment lines from .txt file



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.
.



Relevant Pages

  • Re: How delete a log file
    ... Insted of detaching the database you can empty the second LDF and Remove the ... use the EMPTY FILE parameter in DBCC SHRINKFILE command. ... Can you try detaching the database, delete the log file and then ...
    (microsoft.public.sqlserver.server)
  • Re: Entourage Database Error
    ... When importing now it ... I see the database file I just can't do anything with it. ... Entourage 2008 must import and upgrade your old database. ... I'm not sure what you mean by the database list is empty. ...
    (microsoft.public.mac.office.entourage)
  • Re: Copy Table from Dataset to New Database
    ... >copy the data to a new table in a new Access database. ... > The empty table in the database has all the column names, ... > in-memory dataset to the new table. ... Create a select command against your new table, ...
    (microsoft.public.dotnet.framework.adonet)
  • Import Excel sheets into Access
    ... I have Database with one table. ... I have a form with single command ... importing excel sheets into the database. ... So after importing the excel sheets i should provide the user ...
    (microsoft.public.access.formscoding)
  • Re: COPY STRUCTURE and long field names
    ... If you want the new table to be part of a database, ... The Append command matches fields by name ... so that's why your fields with truncated names come up empty. ... COPY STRUCTURE to myTable2 ...
    (microsoft.public.fox.helpwanted)