Thread
:
Merge text files & then sort unique in DOS
View Single Post
#
11
September 6th 18, 02:41 AM posted to alt.windows7.general,microsoft.public.windowsxp.general
pjp[_10_]
external usenet poster
Posts: 1,183
Merge text files & then sort unique in DOS
In article ,
says...
"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 do that regularily for one specific music folder I maintain. As I burn
the backup off to disk when it reaches 2.5 Gb I also create a text file
of the contents of the disk and save that also. It's easy enough to do.
You can even easily load the text file into Word or whatever you use and
format it as you like etc.
pjp[_10_]
View Public Profile
View message headers
Find all posts by pjp[_10_]
Find all threads started by pjp[_10_]
Ads