Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [bash]

**** IMPORTANT NOTE: Do not ask a bash question until after you have copy/pasted your script into http://shellcheck.net and fixed all of the issues it tells you about. **** This tag is for questions about scripts written for the Bash command shell. Questions about the interactive use of Bash are more likely to be on-topic on Unix & Linux Stack Exchange or Super User than on Stack Overflow.

0 votes
0 answers
9 views

Apple hardware modules in directory other than that used by Linux kernel for startup modules [closed]

I recently installed Linux on a 2019 MacbookPro and do not have the ability to use the laptop trackpad or keyboard, nor to connect to a WiFi network. I am wondering, is my path to the startup modules ...
rollther's user avatar
1 vote
1 answer
38 views

for j in os.system("ls *.out") Doesn't iterate. Changing the name of files depending on extension [duplicate]

I am trying to write a script that will help me run a model several times changing the input of one value of the input files. The model over writes the output files so I need to rename the outputs ...
Rafaella Chiarella's user avatar
0 votes
0 answers
24 views

Github CLI: repo counts without details

The --limit option of gh has an upper value limit. This is set to reasonable values, and for understandable reasons; as discussed here. It can be convenient to format the output of gh as JSON, and ...
user2023370's user avatar
  • 10.9k
-1 votes
0 answers
35 views

Is measuring CPU time wrong in this (parallel) situation? [closed]

I'm running some graph algorithms that take a long time to run, so I need to set a timelimit to ensure it doesn't run for weeks. I have a 12 core CPU and 24 graphs to run the algorithm, so I set the ...
nogrodrigo's user avatar
0 votes
0 answers
13 views

Jenkins doesn't receive correct code from sh script out of podman container

I have a Jenkins pipeline where I run tests in a container and the tests are triggered by .sh script. There is an intermittent problem when script returns exit code 1, but some how Jenkins stage ...
Ellina's user avatar
  • 293
1 vote
0 answers
37 views

Сreating multilevel json with the jq utility in a bash script

I get the contents of a text file into an array and then sequentially get the elements of the array and try to add the elements to the json: #!/bin/bash JSON=$(jq -n '') readarray -t array < ./...
AndAsh AndAsh's user avatar
0 votes
0 answers
35 views

Shell script to add and commit in batch of files at a time [closed]

I will like to fix the issue where "git add" fails when a space is detected in the path file name. e.g source/code/data form/documents.txt. How can I update this script to allow file names ...
Ctan Li's user avatar
  • 187
-1 votes
0 answers
27 views

Bash Regex Start Anchor w/Character Classes Not Working [closed]

GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html $> var=39Q08a ...
Adam D.'s user avatar
  • 189
-1 votes
0 answers
35 views

apk not found/ apk doesn't exist - System App on Anbox Cloud Appliance

I'm trying to install an app as system app in anbox cloud appliance however it keeps giving me this error: "APK not found..." or it says "APK doesn't exist" with the given address. ...
Faraz2079's user avatar
-2 votes
4 answers
98 views

How to append some static content within a single cell of an existing CSV file

Let's assume I need to append the below content within the first cell (not be row by row) of the existing CSV file which has details of the customer. How can I achieve it? Content to be added: "...
Loganayaki mahalingam's user avatar
-2 votes
0 answers
22 views

Get only value from influxdb query table result in bash variable [closed]

I am executing a CLI flux query with a bash script. This is the flux query: from(bucket:"my_bucket") |> range(start:-365d, stop:now()) |> filter(fn: (r) => r._measurement == "...
venni's user avatar
  • 634
0 votes
0 answers
27 views

Run certbot on centralised server to generate certificates manually [closed]

Overview:- Developed a centealized custom api (.net) and deployed to nginx server to accept api request for generating a ssl certificate through api calls. when a new request api call is made , I’m ...
Yuvraj's user avatar
  • 11