cat file with no line wrap

You may be looking for fmt:

fmt file

This pretty aggressively reformats your text, so it may do more than what you want.

Alternatively, the cut command can cut text to a specific column width, discarding text beyond the right margin:

cat file | cut -c1-80

Another handy option is the less -S command, which displays a file in a full screen window with left/right scrolling for long lines:

less -S file

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)