New answers tagged less
Use zless utility from that same gzip suite, it combines functionality of gzip -d and less into one
This is what pipes were made for: gzip -dc | less
Create a file setting a new key binding for the s command key, and "compile it" as follows: echo 's invalid' >~/.lesskey lesskey Then typing s in less will just beep or flash.
You can copy the top line displayed in less to the X11 CLIPBOARD selection by typing with less: |.head -n1|xclip -sel c<Enter><Enter> That pipes the less buffer from the top line to the . mark (so in effect the whole screen content) to the head -n1|xclip -sel c command (to store the first line of that in the CLIPBOARD selection) You could ...
man itself is a tool to format manual pages, not to browse them. The tool you use to browse the man pages is a pager. The default pager on most systems is less. In less, when you press / or ? to search, a few characters have a special meaning if you type them at the beginning of the search expression. The exclamation mark is one of them. To avoid ! having a ...
man -k \! Not sure that is what you are really asking?
I would just mv - f && less f. Problem solved.
Note: my answer is NOT valid in the OP's case, and only applies to tools following the convention mentioned below and not in the case of a file named exactly just - (dash), which is often also a special case to specify that reading from standard input is expected. See the accepted answer. Leaving this here as it contains useful information for other cases ...
Just prefix it with ./: less ./- Or use redirection: less < - Note that since - (as opposed to -x or --foo-- for instance) is considered a special filename rather than an option, the following doesn't work: less -- - # THIS DOES NOT WORK
On OS/X, like on all systems where they are supported except Linux, opening /dev/fd/x is like doing a dup(x), the resulting fd more or less points to the same open file description as on fd x and in particular will have the same offset within the file. Linux is the exception here. On Linux, /dev/fd/x is a symlink to /proc/self/fd/x and /proc/self/fd/x is a ...
The mobyposi.i file uses old-style Mac line endings, i.e. CR characters. Why? I don't know. This file is from 1993, maybe the author wanted to be Mac-friendly and thought Unix and Windows users could fend on their own. Or maybe the author made a mistake, the readme file states that “the vocabulary file [has] CRLF (ASCII 13/10) delimiters” whereas the ...
Another option which doesn't involve setting any variables is to pipe the data through less instead of letting less open the file for you. $ cat file.raw | less or $ less <file.raw would do the trick.
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.
Top 50 recent answers are included