Auto editing a txt file

  • Thread starter Thread starter Dhruv
  • Start date Start date
D

Dhruv

Hi, I have 30kb size textfile on a W2K system. In this
file, I have to remove the carriage Return (ENTER) after
every occurance of "#". I have given a sample how it
looks before and after manual editing. I need to do the
same in automatic, may be a batch command as the file is
very large.

Original file:

This is first line
This is Second line
This is Third line
#
This is Program section
This line-2 in this area
#
This is data section

After Editing:

This is first line
This is Second line
This is Third line
#This is Program section
This line-2 in this area
#This is data section
 
Back
Top