2 ms·
Actually, I used fmt. Then groff and ghostscript. The job of fmt could be done with sed, of course. As many of HN'ers know, sed can perform the functions of
by ised 13y ago
Actually, I used fmt. Then groff and ghostscript.
The job of fmt could be done with sed, of course. As many of HN'ers know, sed can perform the functions of many other UNIX utils. If used as an "all-purpose" program, perhaps it raises the possibility of the typical mantras about "the right tool for the job". But consider this: editing/transforming text (e.g. output from other programs) as a "job" is somewhat all-encompassing under UNIX. Everything can be a "file" and every file can be represented as "text" (e.g. ASCII, hex). What varies is the context in which you do this job of editing/transforming. It might be preprocessing source code (text) for gcc or maybe it's preprocessing a resume (text) for groff.
"When all you know is a sed, everything is a text." - Unknown