View Single Post
  #10  
Old September 6th 18, 02:40 AM posted to microsoft.public.windowsxp.general
No_Name
external usenet poster
 
Posts: 627
Default Merge text files & then sort unique in DOS

On Wed, 5 Sep 2018 17:07:05 -0500, "Mynews"
wrote:

"Grease Monkey" wrote in message
news
Merging text files is easy in DOS
for %f in (*.txt) do type "%f" output.txt


But how do you sort unique in DOS?

unique ? sort Descending or Accenting ?




Use http://bing.com Search For
"command prompt file list to text"


You Get

34,600,000 Results Any time

Command Prompt file list to text
It's very, very easy in the Windows Command-Line Interpreter (all Windows
OSes):

Open a command prompt (Start - Run - cmd "Enter" ).
Navigate (cd) to the directory whose files you want to list.
Enter dir output_file_name (e.g., dir C:\dir.txt) and press "Enter".
See More...
How to copy a list of file names to text file? - Super User
superuser.com/questions/395836/how-to-copy-a-list-of-file-names-to-text-file

How to copy a list of file names to text file? - Super User
https://superuser.com/questions/3958...a-list-of-file...
Open a command prompt (Start - Run - cmd Enter) Navigate (cd) to the
directory whose files you want to list.
Enter dir output_file_name (e.g., dir C:\dir.txt) and press Enter.
Open the newly created text file (C:\dir.txt) and
you'll have the complete output of the dir command in that directory.


I suppose we really need to figure out what kind of data we are
talking about here. Is this several files of column data that you want
to reduce to one? Once you get that into a single file there are other
tools you can use for that but some are not in a basic DOS load.
I would use dBase but only because I have it and am comfortable with
it.
Ads