shellscript tag

50 questions


1 answers
104 views
0
Is there a shell command equivalent to WinMerge directory diff?

There is a tool called WinMerge.This is a tool on Windows for taking different diffs, and some of its features include:Compare the directory structure (like) with two arguments.The directory structure...

2 years ago

3 answers
73 views
0
Bash refers to keywords in a file and extracts parts common to the string.

[Contents] In bash, I would like to refer to the list with keywords (with Japanese, spaces, separated by new lines) file, compare the given string (with Japanese, space hyphen, etc.) with the list, an...

2 years ago

1 answers
122 views
0
I want to change sides of the pipe.

Is there a way to write upside down on both sides of the pipe (|)?If you accidentally write from the Call the Standard Input recipient's command, you want to continue without going back to the beginni...

2 years ago

2 answers
72 views
0
Want multiple processes to run in the background from shell scripts

I want to move another shell script B and C simultaneously in a different directory in shell script A.Shell scripts B, C describe running the same program group.mkdir test1cd test1sh B.sh &cd..mkd...

2 years ago

2 answers
68 views
0
Specify the field to search for a string in the Linux shell script

I don't know how to do it.Number | Name | Height | Weight There is a table that records the .I would like to extract people over 170 centimeters tall and under 180 centimeters from here. grep$a filena...

2 years ago

4 answers
79 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

1 answers
97 views
0
How do I prompt expansion of Zsh in the same order as Bash?

When does Zsh prompt expansion take place, especially in what order compared to other regular expansionFor example, in Bash 3.2.57, if you pass an escape for the prompt to a length function that looks...

2 years ago

1 answers
83 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
94 views
0
Unable to use jq command

1. When creating vpc in cli, the jq command was used and the vpcid output was successful.2. There was a problem enabling the DNS hostname 3. The echo$vpcid should print the defined vpcid, but nothing

2 years ago

1 answers
128 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
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.