Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS tool to convert letters in text file to upper/lowercase. (Miscellaneous)

posted by jhall Homepage, 28.10.2022, 16:47

> Or, you could write a small program to do this for you. Compile this:
> ...

I've compiled the programs for you, if that helps. You can get them in the tolower.zip archive file, available here:

http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/

Since these are trivial programs, I released them under the public domain (cc0).

Note that these programs do not read files on their own; they rely on file redirection on the command line. For example, let's say you had a file called FILE.TXT that you wanted to convert entirely to lowercase text. You would run this command, which saves the new version as LOWER.TXT:

TOLOWER < FILE.TXT > LOWER.TXT

Converting to uppercase is the same way. Let's say you had a file called RUN.BAT that you wanted to convert entirely to uppercase text. You would run this command, which saves the new version as UPPER.BAT:

TOUPPER < RUN.BAT > UPPER.BAT

I hope that helps.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 76 users online (0 registered, 76 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum