sh tag

193 questions


3 answers
49 views
0
Can mv command failure cause loss?

I want to move the file to a different directory in the shell.If I fail for any reason after doing mv, is there a possibility of data loss?As a typical work-level method, I would appreciate it if you ...

2 years ago

1 answers
80 views
0
Connecting to mysql with ssh in php 5.2

We are currently developing php in eclipse.I'm having trouble because I don't know how to connect to mysql in ssh in php5.2.If you include ss2_connect in the source, you will find ss2.php in the langu...

2 years ago

5 answers
99 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
91 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
82 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
147 views
0
How to get Bundle exec done without zsh

If you are using zsh and you have Gemfile in the current directory, you want to put bundle exec at the beginning of certain commands, such as rake, so I installed zsh-bundle-exec, but it didn't seem t...

zsh
2 years ago

2 answers
154 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...


4 answers
62 views
0
How to view the contents of the following files together:

I would like to summarize all the contents of the file below.It's because it's hard to check one.Can I try using cat?

2 years ago

2 answers
85 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
91 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
« - 12 - »

© 2024 OneMinuteCode. All rights reserved.