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 mceric, Germany, 28.10.2022, 11:00

> Googled all the way, and did not find any, is there one maybe....

You should be able to find a DOS version of TR (from textutils or coreutils, for example from Delorie DJGPP, or a 16-bit DOS version of something similar) which lets you do things such as

tr 'a-z' 'A-Z' < normal.txt > upper.txt

Interestingly, the TRCH tool by Jim Hall only translates ONE character at a time in the current version, so you would have to do

trch a A < normal.txt > temp.txt
trch b B < temp.txt > temp2.txt
trch c C < temp2.txt > temp.txt
...
trch z Z < temp.txt > upper.txt

unless I misunderstood how to use it?

---
FreeDOS / DOSEMU2 / ...

 

Complete thread:

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