In this video, I will show you how to use MS-DOS commands to view, create, and sort text files. These commands are essential for anyone who wants to work with text files on a DOS system.
We will cover the following commands:
type: This command displays the contents of a text file on the screen.
copy: This command copies a text file to another location.
sort: This command sorts the lines in a text file in alphabetical order.
copy con: This command creates a new text file from keyboard input.
combine: This command combines two text files into a single file.
I will also show you how to use these commands to automate your text file tasks. For example, you can use the sort command to sort a list of names in alphabetical order, and then use the copy command to copy the sorted list to a new file.
We will cover the following topics:
How to view text files in DOS
How to create text files in DOS
How to sort text files in DOS
How to combine two text files in DOS
I will also provide examples of how to use these commands, so you can see them in action.
If you are new to MS-DOS or text files, this video is for you. I will explain everything in a clear and easy-to-understand way, so you can follow along even if you are a beginner.By the end of this video, you will know how to use MS-DOS commands to view, create, and sort text files. You will also be able to use these commands to automate your text file tasks.
00:00:15 Type command in dos
00:00:50 copy con command in dos
00:02:27 copy command in dos
00:04:29 sort command in dos
copy con command example
C:\COPY CON TEST.TXT
This is a test text document
^Z (ctrl+z)
the type command is an internal command available in all versions of ms-dos. type is used to view the contents of a text file
there are no switches for the type command in dos
the copy command is an internal command available in all versions of ms-dos. copy is used to make a copy of a complete file
switches for the copy command in dos:
- /A Indicates an ASCII text file.
- /B Indicates a binary file.
- /V Verifies that new files are written correctly.
- /Y Suppresses prompting to confirm you want to overwrite an existing destination file.
- /-Y Causes prompting to confirm you want to overwrite an existing destination file.
the copy con command is used to create text files in ms-do by capturing keyboard input and outputting it to a file or printer
The sort command is an external command that is available in all versions of ms-dos. sorts the input and displays the output to the screen.
switches for the sort command in dos
- /R Reverses the sort order; that is, sorts Z to A, then 9 to 0.
- /+n Sorts the file according to characters in column n.
- [drive1:][path1]filename1 Specifies file(s) to be sorted
- [drive2:][path2]filename2 Specifies a file where the sorted input
is to be stored.
- command Specifies a command whose output is to be sorted.
If this is your first time here thank you for stopping by. On this channel we discuss #retrocomputing and #unsupported software. You will find how to videos, demonstrations, slipstreaming updates, and repairing automatic updates for windows among many other projects. There is a little bit here for all manner of retro computing enthusiasts.
Channel Page: [ Ссылка ]
Subscribe: [ Ссылка ]
*Support the channel - Buy Me a Coffee: [ Ссылка ]*
I appreciate you spending time here with me on the channel. If you would like to join me for more on retrocomputing and unsupported software please subscribe and click the bell icon so you don’t miss anything.
MS-DOS Text Files: Mastered in Minutes
Теги
how to sort text files in doscopy con command examplecombine two text files in doshow to view text files in dossort command in doscopy con command in doshow to create text files in dosms dos copy commandcopy command in dosms-dos commandsdos commandstext file commandsms dos commandsms-dos tutorialms dosms dos tutorialsdos commands tutorialbasic dos commands for beginnerscopy conms dos 6.22learning dos commandslearn dos commands