Linked Questions

4 votes
4 answers
2k views

What is the interpretation of the whitespace in this command foo= bar ? Why are foo=bar and foo= bar interpreted differently Example (Ubuntu bash) developer@1604:~$ foo=bar developer@1604:~$ foo= ...
Niklas Rosencrantz's user avatar
0 votes
3 answers
4k views

I need to set a variable in my bash script #!/usr/bin/env bash GITNAME= git config --global user.name echo " $GITNAME " But it doesn't seems to work that way. How does it work?
Kevin's user avatar
  • 219
4 votes
2 answers
5k views

Consider: #!/bin/ksh db2 connect to MKTETLPS user ....... using ........ db2 "select count(*) from etl.IDM_COLLAPSE_ORG_DEE c where c.IDM_PROCESS_STEP = 'I' and priority in ( '1','2','3','4','5') ...
Manish Kumar's user avatar
3 votes
2 answers
3k views

I am creating a script and when I try to capture a command return, I have an error of command not found, if I use this command on the terminal: gcloud -q compute snapshots list --format='csv(NAME)' ...
Renan Otero's user avatar
2 votes
1 answer
14k views

Hi am trying to write a script that updates a row read from file , Every thing is working fine so far except the following mentioned line at the end here is my script : #!/bin/bash #...
AbdAllah Talaat's user avatar
0 votes
1 answer
8k views

I'm trying to replace a substring in $1 with another, AND set it to a variable. (saved as testStringReplacement file) #!/bin/bash secondString="Sara" myString= "${1/Suzi/$secondString}" echo "...
BashNooblet's user avatar
0 votes
1 answer
5k views

I am trying to run a script like : ./script.sh file but I am receiving ( if I use a txt file ): =: cannot open `=' (No such file or directory) test.txt: ASCII text Second If I use a gz file: ...
George's user avatar
  • 545
0 votes
1 answer
1k views

I keep getting the following error in bash (using windows): $ URL = "https://nyc-tlc.s3.amazonaws.com/trip+data/yellow_tripdata_2022-01.parquet" bash: URL: command not found The full ...
RedRum's user avatar
  • 113
1 vote
1 answer
590 views

In my current project, I am trying to take the output from git branch -r to an array in zsh, as follows: % all_branches = ("${(@f)$(git branch -r)}") However, when I run this command, I get ...
Karie's user avatar
  • 63
1 vote
1 answer
245 views

As part of a txt file with instructions on how to run, I use a folder name as a parameter as shown below. However, LINUX does not recognize it. What could I be doing wrong? foldername = "SOPHIE_TRANS"...
Sophie 's user avatar
1 vote
1 answer
99 views

So this question was asked some times already, but the answers didn't seem to work for me. So I have this simple script #!/bin/bash charon_id = $(pidof charon) kill -1 $charon_id And console says ...
GreenThor's user avatar
  • 113
0 votes
0 answers
151 views

I am having a steps in Jenkins pipeline to read my test passing result and fail the Stage if rate lower than 95%. Here's the code sh ''' #!/bin/bash -xe PASS= `cat index.txt | grep % ...
hellojoshhhy's user avatar
-1 votes
1 answer
95 views

I am defining a variable on Debian 10 command line but getting the error. Do anyone know how can I do that? Thank you,
Karim Buzdar's user avatar
0 votes
0 answers
24 views

I am trying to run my script which checks for a file existence and validates its records. If validation is successful it uploads the input file to database.` While executing the script ,it loads the ...
Flower's user avatar
  • 21
0 votes
0 answers
20 views

I need to Concatenat string with leading dash in multiple choice to variable, but it doesn't work as expected and I don't know what is the problem #!/bin/bash filterOptionsStr="" PS3='Filter ...
Mathew Farrell's user avatar

15 30 50 per page