The difference between text-processing
and text-formatting
is that you might process a text into some other format, such as an image, or a page description (as in pdf
or ps
), while text formatting formats a text to produce another text in a special formatted way.
So roughly I would say, when you process a text the result might be have any format and encoding or even no visual result at all but some kind of system function, while when you format a text the source and destination formats are plain texts basically.
As both deals with Text processing/formatting utilities like: sed, awk, perl, cut, grep, diff, sort etc. why both are exist?
All those tools are text formatting tools, while text processing tools are tex
, roff
, metapost
, gs
.
Of course text-formatting
tools are often used to format text for further processing.