sh tag

193 questions


1 answers
111 views
0
cd- is no longer available.How do I return to the previous directory?

After several directory moves, cd-I will run , but after all the settings I have been fiddling with, I can no longer use them.-:no such file or directorySo I think the last directory is not cached, bu...

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
134 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
91 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
131 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

2 answers
142 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
79 views
0
Using CRC32 and MD5 Differently

I think CRC32 and MD5 are both commonly used as hash algorithms?But how do you use it differently?

2 years ago

1 answers
133 views
0
Anaconda console boot fails with zsh environment

I changed the shell from bash to zsh, but the anaconda console is no longer available.Launching the console //Users/username/.anaconda/navigator/a.tool; exit;/Users/username/.anaconda/navigator/a.tool...

2 years ago

1 answers
143 views
0
Understanding SSH Key Roles in AzureDevOps

I'm building AzureDevOps for version management in my company.So I have a user SSH key registration, but is this SSH key only used when I first clone locally from AzureDevOps?Or is it used to maintain...


1 answers
95 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
« - 11 - »

© 2024 OneMinuteCode. All rights reserved.