shellscript tag

50 questions


2 answers
66 views
0
To Replace Curl-i Header and Body in a Shell Script

curl-i seems to yield the following output:status codeheaderheaderheaderbodybodybodyI would like to use this first \n\n as a boundary and eventually get the output similar to the following:What should...

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

1 answers
66 views
0
Error substituting bash for special variable

When you use bash to move sample.sh below, an error is generated with a special variable that substitutes the variable.Probably because it is treated as a string, I don't think I can pull the argument...

2 years ago

1 answers
76 views
0
Rewrite cfg file in .sh file

I'd like to rewrite the cfg file in a different directory than the one where the sh file is stored. What can I do about it?Currently ./usercreate.shcd to /airflowsed-i-e4c\dags_folder=/home/test2/dags...

2 years ago

1 answers
57 views
0
Understanding Shell Conditional Expressions

#!/bin/sh# variable settingexport BATCH_E=$(cd$(dir$0)/..&pwd)source$BATCH_E/bin/conf/batch.conf# Batch processing typeTYPE='25'# Launching the JAVA$SH_COMMAND $BATCH_RUNNER_SH batch.Dataupd $TYPE...

2 years ago

1 answers
78 views
0
I want to search and add files that do not contain specific characters.

I keep the batches and shell scripts that I have created so far under a certain folder.The first line of the file is written differently depending on the time and person you created it.I'd like to aut...

2 years ago

3 answers
53 views
0
I want to add it to any end of the line in the shell script.

I'm a beginner at shell scripting and I'm studying.Thank you for your cooperation.The following configuration files are available:valueA=aaaaaaavalueB=[@$] of the above valueB value[@$] followed by [@...

2 years ago

1 answers
278 views
0
If you run an embulk on the cron, the process stops halfway.

I'd like to run an embulk on cron.I can check the log until the kick of the program set in cron, but If you compare the command execution time and cron time with the standard output of the processing ...

2 years ago

1 answers
70 views
0
Is it possible to use different shells for each terminal?

Hello, I'm a self-taught computer student (Mac).I wanted to make the terminal look cool, so I looked it up and used fish from the default bash.However, the import error of conda in anaconda could not ...

2 years ago

2 answers
82 views
0
If you try to average a large number with awk, it will overflow with digits.

There are several days' worth of files retrieved from vmstat-a5.In order to calculate the average memory usage, I would like to know the average usage of Free, but when I add it with awk, it overflows...

2 years ago
« - 5 -

© 2024 OneMinuteCode. All rights reserved.