cat file with no line wrap

Viewed 31472

In *nix, how do I display (cat) a file with no line-wrapping: longer lines should be cut such that they fit into screen's width.

6 Answers

Other solution, this time using paginate command pr

echo "your long line" | pr -m -t -w 80

Related