皇冠hg0088代理网址

Questions tagged [bash]

For questions about scripts written for the Bash command shell. For shell scripts with errors/syntax errors, please check them with the shellcheck program (or in the web shellcheck server at http://shellcheck.net) before posting here. Questions about interactive use of Bash are more likely to be on-topic on Super User than on Stack Overflow.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

ModuleNotFoundError: No module named '_sqlite3' with Centos7

We have different python version installed and specifically using python3.7 so I have edited my .bashrc file. We are using Centos7 with Linux server. # .bashrc # Source global definitions if [ -f /...
0
votes
0answers
28 views

Error conditional binary operator expected in Shell Script

Here I am trying to figure out the issue occurring at IF [a []] condition where I am consistently getting error for binary operator expected. I tried to change the operator type here but no luck. #!/...
0
votes
0answers
24 views

Compare Filenames in File List Ignoring Directory Paths | Bash | Linux | [closed]

I have two files containing files like File_1: /system/logs/somename.txt /system/logs/anothername.txt File_2: /system/root/somename.txt /system/root/asd.txt /system/root/ddd.txt If i compare these ...
0
votes
0answers
20 views

getting a  ? and a [✘?] instead of just the branch icon and the branch name on zsh

I was just trying to learn git, and the guy on the tutorial talked about zsh, so I followed a tutorial to install it and I am getting a  ?[✘?] instead of the branch name on zsh shell. what should I ...
0
votes
0answers
15 views

Is there a way to always have “reverse-i-search” enabled in bash [closed]

I don't want to hit "Ctrl R" every time. can reverse search be enabled every time i begin to type any command.
3
votes
2answers
25 views

Bash shortcut for take the variable that exists from the two

I've had this question for awhile. In my work that uses bash scripting there are many instances where I have to save a filepath to a variable for use in a later command. We use files with suffixes T1w,...
-2
votes
1answer
20 views

awk regx not working with string from file [closed]

I want to check string from file with below condition but it gives me an error awk 'NR > 1 {print $2,"-",if(length($2) >=8 && $2 ~ "[A-Z_][A-Z_0-9]+") print "OK&...
-2
votes
0answers
19 views

Calling a bash function inside another bash function is stopping execution

I am trying to call a bash function inside of another bash function: setup() { cd path/to/dir docker-compose up -d source local_env.sh pipenv shell } start() { setup python ...
0
votes
1answer
22 views

How to parse json values stored in shell variable

#!/bin/bash DESCRIBE_VPC=$(aws ec2 describe-vpcs --region us-west-2) The Json value retrieved from aws ec2 describe-vpcs --region us-west-2 stores in DESCRIBE_VPC which comes to the output format ...
0
votes
0answers
18 views

How can I run a bash script that accepts user input and get the result with SSH.NET?

Using a C# winforms application, I'm attempting to allow the user to press a button that will run a bash script on my linux server to pull the latest version of a web application. /// <summary> /...
0
votes
2answers
16 views

Creating a bash script that logs the output of 'watch lsusb' into an empty file

I have an embedded Linux system (running Ubuntu 10) on a microprocessor that has an onboard USB hub (specifically a BeagleBone Black). I made a simple bash script that's supposed to run a command, ...
0
votes
1answer
24 views

Who do Bash regular expressions seem to fail on simple matches? [duplicate]

My question is about the Bash binary operator =~ about which the Bash manual page says the following: When it is used, the string to the right of the operator is considered a POSIX extended regular ...
1
vote
0answers
21 views

Viewing the contents of a deleted shell script that is still running

Another post offered a solution for a self deleting shell script rm -- "$0" If this line is inserted at the top of the script then the script will delete itself as soon as it starts running. ...
0
votes
1answer
22 views

Formatting of AWK BASH is not wprking [duplicate]

I am new in bash scripting, I have html file and i want to read the file and show into terminal with formatting. My Html file Code <table> <tr><th >Country Name</th><th >...
1
vote
0answers
13 views

code command using ssh-remote pluguin using bash

Is there a way to open the visual studio code using "code" command on linux terminal but opening it with a specific ssh folder. On documentation i have read that you can open an specific ...

15 30 50 per page
1
2 3 4 5
8623