bash tag

84 questions


1 answers
124 views
0
Debian10's bash shell now says 'command not found'...

All commands now appear command not found on the Debian 10 bash shell...How can we solve this problem?Is there only a reinstallation?Please let me know.

2 years ago

1 answers
115 views
0
I want the environment variable set in Terminal to be permanent.

I changed JAVA_HOME to terminal, but the terminal on another tab returns to the original setting.What should I do if I want to permanently reflect the environment variables that I set in Terminal?Writ...

2 years ago

4 answers
80 views
0
I want to combine the second column of the same row with the first column into one row for text processing in bash.

What should I do if I want to use bash to combine the second row of the same row in the first row into one row?Illustrated a1a2a3b4c5c6d7d8e9Text a 1 2 3b4c56d78e9That's how I want to deal with it.Ple...

2 years ago

2 answers
85 views
0
What's the status of PHP PATH now?

If you follow the instructions on the Internet to get through the PHP PATH, $whichphp/Applications/MAMP/bin/php/php 5.4.10/bin/php$ php-vPHP 5.4.10(cli)(build:...tec.I succeeded, but when I checked it...


3 answers
116 views
0
I want to extract something close to the list in a shell script.

There is a list like this.This list is entered from standard input.-062656-072654-082755-1001-1101-1201-130152-1452Then use the date command to get the time and store it in the variable.Then search fo...

2 years ago

1 answers
84 views
0
I want shell scripts to be able to generate easy-rsa client certificates

I'm a beginner in shellscript.When creating a client certificate with easy-rsa for OpenVPN, I wrote the following code so that it could be executed in shellscript:#!/bin/bashexpect-cset timeout5spawn ...

2 years ago

1 answers
129 views
0
How do I apply awk to the path within the shell script?

In the shell script, I wanted to get the directory at the bottom of the path specified in the argument, so I wrote:■test.sh #!/bin/shmyfol=`awk-F/{print$NF}${1}`mylog=2016_${myfol}.txttouch${mylog}■ R...

2 years ago

1 answers
133 views
0
To obtain complementary candidates for bash

If you press Tab while using bash in an interactive environment, the list of complementary candidates will be displayed, but is it possible to get this from the shell script?In other words, the curren...

2 years ago

5 answers
90 views
0
I want to invoke any command every time the line changes.

On bash, I would like to press Enter and execute some commands when the line changes. Is there such a hook method?Specifically, it looks like this:$cat foobar.txt# running anything command$ # Enter# r...

2 years ago

1 answers
130 views
0
-I option in xargs sometimes stops working

I would like xargs to handle the long file path I got from find, but the -I option does not workdirectory structure:Commands Executed path=What's wrong with you? What's wrong with you? What's wrong wi...

2 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.