bash tag

84 questions


1 answers
335 views
0
How shell(bash) retrieves multiple values from the JSON string and substitutes them into environment variables

I'd like to get multiple values from the following JSON string and substitute them into the environment variable.It didn't work.Shell didn't work as expectedjson_string='{name:John, age:30, city:New Y...

1 years ago

1 answers
424 views
0
Cannot expand variable in backquote

A shell script that moves a file containing the string ice into the ice folder.There are two ice creams in the cord.I'd like to do this only in one place, but I don't know how to write it.I would appr...

1 years ago

1 answers
329 views
0
Cannot expand variable in backquote

A shell script that moves a file containing the string ice into the ice folder.There are two ice creams in the cord.I'd like to do this only in one place, but I don't know how to write it.I would appr...

1 years ago

1 answers
498 views
0
US>Copy command execution results to the clipboard with bash output

You can output command execution results to both standard output and files by doing the following, but can you copy command execution results to the clipboard while outputting them to standard output?...

2 years ago

3 answers
388 views
0
Displays the number of lines omitted by the head and tail of the bash together.

When I use the head or tail commands to display some of the files, I wonder if I can display how many lines were not displayed together.If file.txt is:aaabbbcccdddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

2 years ago

2 answers
362 views
0
How to use bash Tab complement well for file/folder names such as Date_Content

If the current directory has a subdirectory similar to the following:cd20220123_EEE to move.In this case, tab completion does not work well (you must enter 20220123_E).20220120_AAA20220121_BBB20220122...

2 years ago

1 answers
411 views
0
"-bash:/usr/local/bin/node: No such file or directory" is displayed when running "node-v" on a Mac terminal.

As the title suggests, when you run node-v on a Mac terminal, -bash:/usr/local/bin/node: No such file or directory is displayed.what someone did$nodebrew listv10.0.0v11.14.0v12.16.3v16.2.0current —v12...

2 years ago

1 answers
453 views
0
How to Proxy for Browser Communications Only in Bash Scripts

I would like to use the proxy specified only when the chrome browser communicates through the Bash script, is that possible?I have a vague knowledge of the network, so could you tell me what kind of a...

2 years ago

1 answers
326 views
0
I am using bash on Lubuntu 20.04 LTS, but I get an error using the rename command.

symptomsInstalled the rename command with apt-get on the Lubuntu 20.04 LTS bash.Then, when I ran the following command so that the file extension is .sh and the extension is .txt, I got an error.$rena...

2 years ago

1 answers
501 views
0
GitHub is not accessible from git-bash

The git command on a git bash installed in Windows causes various problems.You can use git --version to verify the git installation.The git clone command looks like this: git clone https://~~Cloning i...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.