Auto editing a txt file

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top