Open a .raw file as text in less

command lineless

The output of my program has a .raw file extension. If I try to open this with less I get:

No isoinfo available
Install mkisofs to view ISO images

The file isn't an image file, it's just text. Is there a way to tell less that the file should be opened as plain text?

Best Answer

The attempt to use isoinfo comes from lesspipe, which is generally used as a helper for less via the LESSOPEN variable.

Running

LESSOPEN= less file.raw

will open file.raw without interpretation.

Related Question