Path: icaen!news.uiowa.edu!uunet!news.mathworks.com!news.alpha.net!uwm.edu!caen!hearst.acc.Virginia.EDU!freenet.vcu.edu!freenet.vcu.edu!not-for-mail From: twyant@freenet.vcu.edu Newsgroups: comp.binaries.apple2 Subject: tr shell utility (0/1) Date: 25 Jan 1995 09:16:02 -0500 Organization: Central Virginia's Free-Net Lines: 19 Distribution: world Message-ID: <3g5mf2$18m@freenet.vcu.edu> NNTP-Posting-Host: freenet.vcu.edu The following post is an implementation of the Unix "tr" command to run under the ORCA shell. For non-Unix types, "tr" is a kind of general-purpose character translation utility; it reads stdin, scans it for some user-specified set of characters, replaces any matches with characters from another set, and flushes any other characters through. Possible uses are uppercase conversion, lowercase conversion, replacing carriage returns with linefeeds (or vice versa), compressing multiple spaces, and so on. Because it is based on fgetc it is not blindingly fast, but if it's this or nothing, you might want to take this. And no, it is not a substitute for sed. Executables, source, and docs are included (except for the "man" page, which you can get elsewhere). This has also been posted to cco.caltech.edu and grind.isca.uiowa.edu. Tom Wyant twyant@freenet.vcu.edu