Questions tagged [less-unix]

It's a UNIX command to display a file.

Example: less file will display the file file.

See discussion in Meta for the history on why is used for this instead of , which is broadly used for CSS.

139 questions
0
votes
2 answers

pager (less) -- get current scroll position?

I am scripting the display of the output of a script (well, it is just the program git diff) with tmux: Once a filesystem change is detected the shell script executes tmux send-keys q enter C-l "git diff" enter which has it effectively refresh the…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
0
votes
1 answer

Unable to unbind a shell function

This question is based on the thread. I have the shell function function man() { man "$1" > /tmp/manual; less /tmp/manual } The problem is there exists the command man. How can you replace the command with my command?
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
-2
votes
1 answer

Linux : less cannot search case insensitive using -i

Consider: If searching using ?cm02csdate -i, it fails: But if searching using ?CM02CSDATE, it can be found: I searched the man page. It also said using -i to search case insensitive, as the following shows: So why does it fail when I use…
user1169587
  • 1,104
  • 2
  • 17
  • 34
-4
votes
1 answer

How to write correctly regex pattern for less command

How convert this pattern Some_Word>[\n\t\r].*?[\n\t\r].*?[\n\t\r].*?BK<\/symbol> When I'm used this with the less command, then I not found nothing. P.S. I checked here that patter with the text and it work correctly: before bla…
slesh
  • 1,902
  • 1
  • 18
  • 29
1 2 3
9
10