less-unix Questions
6
Solved
I have a file that has around million lines. I need to go to line number 320123 to check the data. How do I do that?
1
"less" command works fine, though.
I can use "less" to display part of the file on the screen.
Supposedly, there is a "more" command, but when I type it in, it s...
1
Solved
I have a simple json file and if I pipe the output of "jq" into "less", the colors get removed.
This works:
# yey, lots of colors
jq "." /tmp/myfile.json
This doesn't...
8
Solved
I'm trying to come up with a way to find a specific flag in a man-page. Usually, I type '/'
to search for something, followed by something like '-Werror' to find a specific flag.
The thing is thoug...
5
When watching a growing log file with e.g. "less -iS +F service.log" I want
to limit the display to lines matching a certain pattern.
I tried something like
less +F service.log | grep <pattern...
Shortridge asked 19/11, 2009 at 9:7
4
I know how to tail a text file with a specific number of lines,
tail -n50 /this/is/my.log
However, how do I make that line count a variable?
Let's say I have a large log file which is appended ...
2
Solved
In vim, if I am in search mode by pressing /, I can press Ctrl+p to find my last searched string, and press that combination again to find an even earlier searched string, and so on. I can do the s...
4
Solved
Whenever I view a git log --all --graph --oneline --decorate output in my terminal emulator, the first commit is viewed at the top of the terminal screen. When I quit the git log output view with q...
9
I have a Markdown string in JavaScript, and I'd like to display it (with bolding, etc) in a less (or, I suppose, more)-style viewer for the command line.
For example, with a string
"hello\n" +
...
2
Solved
I want to search for multiple strings in a log file. Only those entries should be highligted where all the search strings are there in same line. Can i use less command for this or any other better...
2
Solved
Word wrap mode of "less" viewer is disabled by default in the system I work on. According to "less" viewer help, it is disabled with -S or --chop-long-lines flags. I did not find how to force...
1
In openSUSE 12.2, the less command counts line numbers when the file is opened. This causes a lot of delays when working with huge files. Is there a way to disable this option?
6
Solved
What is the powershell equivalent of 'less'?
I see 'more', but it lacks some of the features I rely on (e.g. searching through the file)
I seek a pager (equivalent of 'less') which allows search...
Wordbook asked 20/5, 2011 at 14:33
6
Solved
I now aim to show the percentage sign also when you run, for example, the command
man emacs
If you run it, you get 'byte 3300' for instance.
Alex's answer suggests me that we need to make a sep...
Jocasta asked 26/6, 2009 at 14:8
1
Solved
I want to give a big data file to less -s -M +Gg such that read current given data in less -s -M +Gg.
While-loop example (see ntc2's answer)
Less command explained here.
Replacing the yes by a ...
2
Solved
I often view files using less and want to remember what i have just seen in the file. However when I quit less by pressing the q key my xterm window removes the page of less showing the file and on...
0
Using the unix command line tool less, how do I scroll horizontally? I need to scroll one (or a half) screen to the right or left
2
Solved
I want to write an interactive program like 'less' command for Linux. Reason I can't use less in my setup because you can execute shell commands within less prompt '!cmd' which can be a major secur...
5
Solved
It seems like the only way to do this is to pass the -i parameter in when you initially run less. Does anyone know of some secret hack to make something like this work
/something to search for/i
...
Uird asked 19/8, 2008 at 20:0
3
Solved
I want to execute less and similar programs from the command-line in PHP.
I have tried the usual suspects (exec, shell_exec, passthru, etc), and while many of them can dump the file to the screen,...
Heterotrophic asked 13/8, 2010 at 18:7
2
I'd like to do something like
openssl enc -d -aes256 -in somefile | less
openssl requires a password from stdin. and this gets all messed up when less is involved.
Is there a way to take the ou...
3
Solved
I'm just wondering about this problem:
if I can use something like "ls -al | less", less should have the ability of waiting for input from stdin. What I expected to happen is after running "less" c...
3
Solved
Rather silly question, but I can't seem to find the answer in the docs or man pages.
Starting with 8.3 I think, the psql CLI client will not display the results of a large query inline. It pipes t...
Miaow asked 30/12, 2009 at 20:58
1
Solved
Can someone explain to me how less, vi and curses programs manage graphics output? Can they change individual characters on the screen or do they have to literary clear and redraw the screen whenev...
2
Solved
I need to execute the less command, with paging, from my Java console application. However, the only method I found to execute external commands is Runtime.getRuntime().exec(), which requires me to...
Jotham asked 30/1, 2012 at 14:17
1 Next >
© 2022 - 2024 — McMap. All rights reserved.