Page 1 of 1
Delete Lines
Posted: 10 Mar 2015 01:54
by zagix
Hi,
I need to delete these lines
Code: Select all
company name company name company name branch branch name ledger printing 02/07/2014 July 2014 PAGE: X
as they reoccur in text file repeatedly.
Any simple way to whip out instantly, Only the PAGE: X changes else is constant.
Thanks.
Re: Delete Lines
Posted: 10 Mar 2015 03:19
by miskox
Something like this might do the trick:
Code: Select all
findstr /B /V /C:"company name company name company name branch branch name ledger printing " filename.txt >newfile.txt
Saso
Re: Delete Lines
Posted: 12 Mar 2015 03:34
by foxidrive
There's an invisible character at the beginning of the line and the PAGE: X
is on the end of the line.
zagix wrote:I need to delete these lines
Code: Select all
company name company name company name branch branch name ledger printing 02/07/2014 July 2014 PAGE: X
I'd bet my glass of beer that X is not really X and that the date and time can change, at the very least.
Re: Delete Lines
Posted: 21 Mar 2015 01:24
by zagix
Hi,
Foxidrive you are genius.
There's an invisible character at the beginning of the line and the PAGE: X
is on the end of the line.
That's 100% true the invisible character is page break sign.
The X was to displayed to show that they will change on each page.
Genius foxidrive, provide some solution.
Thanks.
Re: Delete Lines
Posted: 21 Mar 2015 06:33
by foxidrive
zagix wrote:Genius foxidrive, provide some solution.
This is the kind of genius I am. If you provide actual details of the task then you may get a solution that works.
Re: Delete Lines
Posted: 21 Mar 2015 07:37
by brinda
Re: Delete Lines
Posted: 21 Mar 2015 19:40
by Squashman
Meep Meep!