Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

All Questions

Tagged with
0
votes
0answers
34 views

auto pagination of terminal output

Octave has a feature to automatically paginate output that is longer than what fits on the screen:How can I achieve the same in a terminal?The accepted answer to a similar question suggests making ...
0
votes
0answers
28 views

Get Filename and numbers from specific length string in bash script [on hold]

I currently have the following in a Batch script:echo Looking for odt file with -00Ramkkardir /b C:\users\%username%\OneDrive\Ramkkar\-00Ramkkar*.odt >Test.ITTempsetlocal EnableDelayedExpansion...
0
votes
0answers
18 views

Unable to install anaconda distribution (permission denied)

I am trying to install Anaconda on the server machine:LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core- 4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0- amd64:...
0
votes
1answer
14 views

Bash script for Docker container in Windows returns “Unknown target”

I've downloaded a repository that contains a .sh script to open a Docker container. I'm running Windows 10 with Docker Toolbox (rather than the full version, which has some Hyper-V issues) and its ...
0
votes
1answer
18 views

how to align lines to the left side with sed or perl one line liner

we have the following filehow alignment lines to the left side with sed or perl one line linermore conf.env# Extra ssh options. Empty by default.export HADOOP_SSH_OPTS="-o ConnectTimeout=5 ...
3
votes
3answers
77 views

mv vs cp: what is different about the resulting file?

I had a bug where a configuration file for some application was not being included properly, so to try to isolate the problematic line of the file, I copied the old contents into a new file a few ...
0
votes
2answers
20 views

Linux Mint .profile TERM variable not set

I have a custom script in my .profile file, with added code and nothing taken away, however it is still replying with a TERM ENVIRONMENT VARIABLE NOT SET error. However, if I run the command echo $...
0
votes
1answer
61 views

How can I get the extension(s) of a file based on its content?

I'm planning on downloading a bunch of images from a website that don't come with an extension, so I want to add one based on the file's content or mime-type.file <filename> does a great job ...
0
votes
1answer
27 views

how to delete all files that are old then X days and ended with number/s

we want to delete all files that ended with number with digit or more as 2 digit or three digit and so onnote - when files is ended with number , its tell us this file was rotate and actually backup ...
1
vote
1answer
20 views

Shell script: run screen, open several screens and run a command in each

Pretty much what the title says:My shell script shouldRun command A, wait until donerun "screen"run command B1 in initial screenopen new window (usually via Cmd-a-c)run command B2 in new ...
0
votes
0answers
16 views

Test if GUI has been run in linux bash

In my .profile file on my Linux Mint 19 terminal I need it to test if the GUI is running on any of the CTRL+Alt+F# keys, not just the current one. If it is not running it runs the startx command. If ...
0
votes
1answer
19 views

Color specific filenames (not extensions) in `ls` output like Makefile or CMakeLists.txt

I am currently working on a C++ project. I am using CMake as a build system and I would love to have all the CMake related files (like CMakeLists.txt) colored differently in the ls command output. ...
-1
votes
1answer
38 views

How to use “progress-bar.sh” to display the progress of operations that occur on remote servers

I need to integrate a progress bar to operations on remote server over SSH.In my situation there are several loops that trigger processes on few remote servers over SSH. These processes are being ...
0
votes
1answer
25 views

grep regex pattern matches on each line where only all matches appear and print on same line

trying to extract some patterns per line, from a log file.I am trying to extract the first time stamp, and two or three other matches but I want to be able to only print the matches from the lines ...
0
votes
1answer
60 views

Raspberry Pi headless, my if [[ file1 -nt file 2 ]] that thinks the two files have the same modified date

So I have a player script "player.sh" and an updater script "updater.sh".player.sh plays any mp3 file in /home/filepath/ using a wild card *.mp3, this works as expected.what I want is for the ...

153050per page