Sorting Do

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

I have a large file with millions of records and I have to clean it up and
delete all lines that do not start with certain string (let's say XYZ).
Can this be done in DOS?
Any suggestions on what approach/tools I can take here.
Best,
Sam
 
Sam said:
I have a large file with millions of records and I have to clean it up and
delete all lines that do not start with certain string (let's say XYZ).
Can this be done in DOS?
Any suggestions on what approach/tools I can take here.
Best,
Sam

No, you can't to this in DOS (which is this ancient operating
system used by Microsoft back in 1978) but you can do it in
a Command Prompt by using this command:

type MyFile.txt | findstr /b /i "XYZ" > MyNewFile.txt

Note that MyFile.txt must be a text file. Expect the program
to take a long time to execute if you have millions of records.
 
Pegasus \(MVP\) said:
No, you can't to this in DOS (which is this ancient operating
system used by Microsoft back in 1978)

<ahem>... FIRST used would be more correct.
 
Or used up to 1993 by those without a computer capable of running Windows<g>


Gord Dibben MS Excel MVP
 
Twayne said:
And is still in very heavy use in many places today.

In fact, a GREATLY enhanced and more versatile/complicated version can be
found on Linux machines.
 
HeyBub said:
In fact, a GREATLY enhanced and more versatile/complicated version can be
found on Linux machines.


Actually, DOS (Disk Operating System) is what all operating systems (OSs)
ARE... Including Vista! ;)
 

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

Back
Top