bash tag

84 questions


2 answers
127 views
0
Error after using vim command.

When I type the following command on Git, I get an error that vim is not a Git command. How can I make it work without any errors?When I type the following command on another PC, there is no error. Gi...

2 years ago

1 answers
82 views
0
; not understand the meaning of

I'm sorry it's rudimentary, but I don't understand the meaning of ;.It appears in the reference book, but there is no explanation.It is written in the practice program of the reference book, but somet...

2 years ago

5 answers
90 views
0
I want to see the results of multiple Bash commands in one line.

Thank you for your help. uname-n; cat/proc/meminfo | head-1 | awk' {print$2}'server11112233The result was This result can be used as a result of the sever1112233I would like to ask if there is a good ...

2 years ago

2 answers
83 views
0
How to Display Some Message on a Terminal Every Time

When I work on a local terminal, I sometimes feel dazed.In such cases, I would like to regularly display messages on the terminal every hour to remind you, but is there the safest way to do so?For exa...

2 years ago

1 answers
76 views
0
How to write in fish shell

If the docker service does not start in .bashrc as shown below, I try to start the service.In the case of fish, how should I write it down?service docker status>/dev/null2>&1if[$?=1]; then s...

2 years ago

2 answers
146 views
0
How to Compare Files with Commands and Extract Mismatched Records

[Contents] In the command, compare Files listing IDs with csv containing IDsI'd like to extract a record of IDs from csv that are not listed in the Files Enumerating IDs.[Example] Files enumerating ID...


2 answers
81 views
0
Want scripts using process replacement to work with Bash 3.1.20 without temporary files

With Bash4, process replacement is available, for example:$paste-d<(echo hoge)<(echo piyo)hogepiyoHowever, process replacement is not available in Bash 3.1.20, so if you want to rewrite it strai...

2 years ago

1 answers
81 views
0
Missing .bashrc when building gulp environment in macOS

I am building an environment using gulp.$touch.bash_profile$ touch.bashrcYou can find the .bash_profile file in the home folder, but File not found for .bashrc.Is it possible to create it without usin...

2 years ago

2 answers
97 views
0
I want to download only the files under the directory specified in wget.

The site you would like to download has the following configuration:https://files.example/works/section_ahttps://files.example/works/section_bhttps://files.example/works/section_c...Among them, you wa...

2 years ago

2 answers
92 views
0
I want to specify a variable in the path of find

Thank you for your hard work.Let's say the following code is the main subject.#!/bin/bashfile_name = test.txtwhile read line;do dir = ${line} while read;do echo Verify operation: ${red} done<<...

2 years ago
« - 6 - »

© 2024 OneMinuteCode. All rights reserved.