Linux text formatting – fmt & pr

Linux has 2 commands to work with files that have long lines, or too many lines. For file with too much long line, we can use fmt command. fmt fileName fmt divide long lines, into a shorter line. By default it divide into line of 72 characters. for example when we cat our lorem file, … Continue reading Linux text formatting – fmt & pr

Advertisements