I'm writing one small bash script for my Project but i getting some errors #!/bin/bash count=$(cat Downloads/datei.csv | wc -l); for((i=115;i&
I am trying to set up a correct PATH, but I'm wondering what it should contain. If I have /usr/bin/ls /usr/local/bin/ls and I want to prefer the one in /usr/
I am using yq for YAML processor. I got this error: Error: Parsing expression: Lexer error: could not match text starting at 1:8 failing at 1:10. unmatched text
Is there any way to make the script: diff <(echo 'hello') <(echo 'hello-2') work, as currently it fails with error in Dart when run using Process.run or P
I am trying to implement an automatic execution of my program on a raspberry, I read some tutorials and they talk about using a file with .sh extension and edit
I'm using the following script to get the data of one of the variables from the database file #!/bin/bash sqlite3 pdu.db <<'END_SQL' .timeout 2000 SELECT
I have an input file, which has below data : driver2:y driver5:y driver3:n driver1:y driver4:y The requirement is, for each driver if the value is "y" then the
I want to automate having a file that tracks all my installed brew packages. I can do this manually with brew list > somefile, how ever I want this process t
I have a script, that is running inside the docker container some actions we need for some internal debugging purposes: set -eu echo "Starting i/o test for hos
Hi I am making one script for which I would like it, that through one command it would be possible to make a more complex command or function. The problem is th
I am running a command ./startup.sh nginx:start and I am getting this error message zsh: permission denied: ./startup.sh why could this be happening?
I have the same Bash script that I am running on Linux, Mac, and Windows (with Git Bash). How can I make sure that the path is converted to a Windows-style path
I have a shell script version.sh in which i have code like. #!/bin/sh data = `lsb_release -a` echo $data it returned me the output like: Distributor ID: Ubuntu
How to wait in bash script to subprocess and if one of them return exit code 1 so I want to stop all subprocess. This is what I tried to do. But there are a som
I've made an executable jar file for a terminal game that can be opened by typing java -jar name.jar in the Terminal. Then I made a .sh file inside the same fol
I'm running shellcheck on my scripts and often get this warning (which in this case is correct, because cd foo bar baz makes no sense): cd ${SOME_DIR} || exit 1
I have a PHP script that executes a shell command to find the common items between two files given. This is the beginning of my PHP script: $E7Bonded_File = "
I have this shell script which works on my machine just fine. To test the script I have a VM with the same OS Version, MacOSCatalina. On the "real machine" the
Assuming I have a bash script test.sh: #!/bin/bash # Comment 1 echo "Hello world" # Comment 2 echo "Hi there" I know after making the bash script executable
I am working in linux environment as a non root user. I am using users command to get the logged in users users But it returns the user names multiple times