shellscript tag

50 questions


3 answers
442 views
0
I want to add headers and footers to a text file with Linux commands.

I would like to process the text file (test.txt) using the Linux command as follows.before processing:--SQLAfter processing:header-- SQLfooterThe following shell scripts did not work:I would appreciat...

2 years ago

3 answers
494 views
0
I want to add headers and footers to a text file with Linux commands.

I would like to process the text file (test.txt) using the Linux command as follows.before processing:--SQLAfter processing:header-- SQLfooterThe following shell scripts did not work:I would appreciat...

2 years ago

3 answers
346 views
0
I want to add headers and footers to a text file with Linux commands.

I would like to process the text file (test.txt) using the Linux command as follows.before processing:--SQLAfter processing:header-- SQLfooterThe following shell scripts did not work:I would appreciat...

2 years ago

1 answers
277 views
0
I want to use associative array in zsh, but it doesn't work.

I write a shell script with macOS zsh, but there are many samples on the Internet that use the -A option when using the associative array (declare command), but when I actually use it, I am told that ...

2 years ago

1 answers
480 views
0
GNU nano opens when I set up the crontab, but I want to change it to VS Code.

I want to change the text editor that opens when setting crontab to VS Code Insider version, so I added the ShellScript below to ./profile, but GNU nano will open.Please tell me how to change the text...

2 years ago

1 answers
387 views
0
Create action to display warning and exit when true is received in shell script if branch

I would like to check the contents of the hoge file and decide whether to finish or not.·Procedure for the confirmation process you want to createDetermining if the first line of the 22-24 line of the...

2 years ago

3 answers
100 views
0
I want to substitute a value for a variable in a file with Bash.

I want to substitute the variable I set in the command to the variable in the file, but I'm having trouble because I don't know how to substitute it.Isn't there a way to substitute the value outside t...

2 years ago

1 answers
98 views
0
Cannot Install Composer Using Swap Files

AWS EC2 is trying to initialize an instance of CentOS automatically created with Auto Scaling with a shell script.In that case, if you try to install Composer normally, you will experience an error du...


1 answers
115 views
0
"make:execvp:/bin/sh:Argument list too long" error during build with make command

There is an error when building with the make command.I can't tell if the Linux setting is bad, the Makefile is bad, or the shell is bad, so please let me know.raspberry pi3B+openSUSE 64bitMakefile an...


1 answers
79 views
0
I want to extract a specific string to a specific character in a shell script.

The following log files are available:aaa1234.234;bbbb5678.345;ccc12345.356;aaa2345.344;bbbb6789.354;ccc23456.678;I want to extract only the number of bbbb from bbb to ; from this file.There is no str...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.