21.21. Rotating TextEvery now and then you come across something and say, "Gee, that might come in handy someday, but I have no idea for what." This might happen to you when you're browsing at a flea market or garage sale; if you're like us, it might happen when you're browsing through public domain software. Go to http://examples.oreilly.com/upt3 for more information on: rot Which brings us to the rot program. rot basically just rotates text columns and rows. For example, the first column below shows an input file. The other three columns show the same file fed through rot once, twice, and three times:
Now let's compare combinations of rot and tail -r (Section 42.1):
rot rotates the text 90 degrees. tail -r turns the text "upside down" (last line in becomes the first line out, and so forth). rot can also rotate the output of banner to print down a page instead of across. By now, we hope you have an idea of what rot can do! --JP and LM Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|