All Questions
Tagged with text command-line
14 questions
0
votes
1
answer
417
views
Output text file contents (/proc/interrupts) as they change [duplicate]
Is there some command I can use to monitor changes in /proc/interrupt?
For example, using head -4 I can see that the file is changing, but only if I run head again and again:
> head -4 /proc/...
1
vote
2
answers
103
views
name that has biggest number
I have a file with a list of names and a number next to it separated by a space for exemple:
Mat 199
rose 150
I want to display the name that has the biggest number next to, so in this exemple, ...
1
vote
1
answer
91
views
need help with my menu program
i'm having issue with the script, the selection 2 and 3 doesn't show anything when executing.
#!/bin/bash
while true
do
clear
echo "========================"
echo "Menu ----"...
4
votes
5
answers
4k
views
Bash, get links from pdf
Os
ubuntu.
Need
to get links or more data (for example binding layer from QuarkXPress application) from pdf to text, in terminal.
Tried
pdftotext, but seems links are not exported,
pdfgrep is the ...
1
vote
1
answer
1k
views
Linux command that continuously outputs string of text
At some point I used a shell command that continuously sent a very short string of text to the standard output, but at this moment I can't recall it's name.
Its name was something very short, like '...
9
votes
3
answers
991
views
Existing command line text on screen to file? (non-graphical Linux)
On tty2, how do I take a text screenshot of the command line?
0
votes
1
answer
366
views
detecting unique lines from log file
I have a large log file and would like to detect the patterns instead of specific lines.
for example:
/path/messages-20181116:11/15/2018 14:23:05.159|worker001|clusterm|I|userx deleted job 5018
/...
0
votes
2
answers
77
views
How to convert "animated" text in a document to static text? [duplicate]
When I analyze the output from Racon, which I got on GitHub, it has dynamic "animated" text as the output from the STDERR.
For example, when I cat the file, it looks like this:
[racon::Polisher::...
1
vote
2
answers
1k
views
Inverted tail command? [duplicate]
Basically, piping a command or block of text to something like: tail -n 3 (for example), will print only the last three lines to stdout. Is there an equivalent, or similar method for doing the exact ...
1
vote
1
answer
533
views
How to trim the WHOIS disclaimer?
What's the best way to trim the massive disclaimer from the end of the whois output?
It looks something like this:
>>> Last update of WHOIS database: 2017-01-30T20:17:39Z <<<
...
1
vote
3
answers
12k
views
How to input text into a new text file using nano from command line?
How to input text into a new text file using nano from command line?
I would like the same as with the following, but using nano:
echo 'Hello, world.' >foo.txt
Result:
nano is not capable of ...
0
votes
2
answers
3k
views
Sed Usage: Add shebang missing from first line of script [duplicate]
I have a *.sh script that's missing the shebang from the first line. Can I fix it with sed?
0
votes
1
answer
647
views
Unix, create file based on command [duplicate]
I have a command, but I want to get the results into a .txt file I can open. How do I alter my command to allow the results to be put into a text file. I plan to transfer this .txt file to my local ...
6
votes
1
answer
1k
views
Print out unicode values of stdin?
I use od to print me the octal or hex of a file/stdin/string. This lets me see the ASCII, or UTF-8 encoded, values of my stdin.
But we don't live in ASCIIland anymore. Is there any command that will ...