I am trying to launch networkQuality command in the background and live fetch the first part of the output to the bash script launching it. First part I want to
I'm trying to run only one instance of my back up script as a cron job. I know I can do it with a function that checks if the process is running: if pgrep -x rc
find /folder/202205??/ -type f | xargs head -50| grep '^Starting' There are 20220501 20220502 20220503 and so on folders... This command searches all first 50 l
I have a number of jobs. Typically I start the jobs manually by opening a number of terminal windows, and in each terminal window setting certain environment va
I'm sorry I can't provide the actual filenames for privacy reasons. names.txt contains several groups of lines separated by a single empty line. Each group pert
When I run the "ps" command, I can see all the processes I'm running, but for some reason, there are two identical processes(except for the PID ofc) running bas
I have a file called data.txt. when I read the file, the content looks like the below. $ cat data.txt name: linuxVol id: 6 type: Linux dir excludes: .snapshot*
Here's a simple reproducer: cat >sample_pipeline.sh << EOF set -x head
Please tell, how it is possible to execute it For example the person entered 24 and 24 appeared on the screen "ok", on the contrary when entered 24 and 23 perso
Okay, this is a bit convoluted but I've got a python script that digests a json file and prints a string representation of that file like so for id in pwds.keys
I have to write a shell script to accept the product order details as string input and display the total order amount and number of order under each category.
Somehow, at some point, I accidentally created a file in my home directory named '-s'. It is about 500 kb and I have no idea if it contains important data or no
I have a keyboard that does not have double quotes, when I need to use it, it's very difficult to remember the FN. How can I create a script so that when I pres
I need to read (store in variable) and then change the online_hostname key value in XML using bash/shell script. <?xml version="1.0" encoding="UTF-8" ?> &
I am wanting to generate a secret key for a django project, that runs using podman run --new, so it generates a new container from scratch when the machine is r
while trying to write a bash script i encountered a strange issue when i try to execute it. i want to echo the $PROMPT_COMMAND variable thus, i have the followi
It was a pain to google solutions for my problem since it is using application "at" :) So the thing is, I am trying to run long runnng operation (I know that I
I am trying to start a container from the given image below but I am getting the following error: ERROR: for code_challenge_api Cannot start service api: OCI
I have a variable in bash number which contains values 01, 02, 03, 04, 05, 06, 07, 08, 09, 010, 011, 012. I would like to remove the leading zeros before 010,
I WAS reading Learning GO and suggest that needs to be declared on PATH GOPATH="/home/user/go". this is from author: it’s a good idea to explicitly defin