On Sat, Dec 06, 2003 at 11:53:31AM -0800, Alex Williamson wrote: > I am trying to replace newlines with tab in a file which lists words > on seperate lines. (Which is displayed within a larger script. I don't > want to endlessly scroll to see the whole thing.) I'm piping cat to > tr. [ cat filename | tr \n \t ]. The tr man page says that this > should display the normal filename output with a display that replaces > new line characters with tabs. Instead n is replaced with t and the > words remain on seperate lines. Searching in less with these escaped > characters behaves the same way. What gives? > > Also, I'm running putty as an ssh from an Win2k machine to my linux > machine. Man pages show [ - ] as [ an a with ^ above it. ], which > drives me crazy trying to read. Telnet from a command promt is even > worse. More characters don't scan. Any fixes? > Looks like "backslashitis" problem. This works for me: cat filename | tr \\n \\t -- trammell at el-swifto.com 9EC7 BC6D E688 A184 9F58 FD4C 2C12 CC14 8ABA 36F5 Twin Cities Linux Users Group (TCLUG) Minneapolis/St. Paul, Minnesota _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-list