Occasionally, you may have to deal with files that exceed common printing parameters, e.g. columns 80 or 132. The fold command is a filter designed to deal with this type of issue. Personally, I have used it on a few log files. Here is an example of its use.
# fold –w 132 longlinefile | lp
Or output to a file
# fold –w 132 longlinefile > new_file
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
1 comment:
Thanks to your page I found the right command in 1 minute.
Post a Comment