shellscript tag

50 questions


3 answers
85 views
0
Best language for extracting the same lines for multiple tab-separated files and putting them together in a new folder

I would like to take a specific line from a tab-separated multiple file (hereinafter called dat file) that stores multiple matrix data in the directory, and then arrange the row data in the order in w...

2 years ago

2 answers
78 views
0
I want to automate the LAMP environment build with shell script in the Ubuntu container of Docker [Closed]

Do you want to improve this question?Edit your post to clarify the issue you are trying to resolve by adding details.Closed 4 years ago.4 years agoI would like to automate the LAMP environment with sh...

2 years ago

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


2 answers
104 views
0
I want to specify a serial number in the JSON element of the shell script.

Current stateWe are currently working on correcting JSON and adding a new Val element (Key: Value) from the existing JSON.Current Code{ total: [ { name: sasuke, category: animal, URL: https://0000/...

2 years ago

3 answers
80 views
0
Is there a command to edit binaries in bulk?

Do you have any commands to do binary editing on Linux, such as sed, awk.I would like to use this command to rewrite, for example, the number of bytes in multiple files to what values in bulk.I search...

2 years ago

3 answers
96 views
0
Understanding How to Extract Hierarchical Strings

We would like to process the following text file into CSV file format using shell script.If it can be processed on Linux, I don't care about the method.I can't think of a way to realize it, so I would...

2 years ago

3 answers
83 views
0
If you set the MySQL password with mysql_config_editor, the file size of the mysqldump result is 0 only when you run the sh file via crontab.

environment·CentOS·MySQL 5.6...password is set in mysql_config_editor·Linux username...testThe following command creates the file as expected.sh hoge.sh▼hoge.sh mysqldump --single-transaction-u databa...

2 years ago

1 answers
119 views
0
Why is the process name shortened when I get the top command from a self-produced script that I started with systemctl?

In CentOS 8, we created a shell script that records the results of the top command in a log file every 10 seconds.#!/bin/shwhile truedo top-b-n 1 | head-30>>/var/log/process-logger.log sleep10do...


2 answers
76 views
0
Understanding Shell -e Options and rc.local

Why does the -e option behave differently when the script is written in /etc/rc.local and when it is not?For example, if you have a script like this and run caller.sh, the echo-sleep5.sh process disap...

2 years ago

2 answers
68 views
0
Get current time (hh:mm) in shell script and branch with if statement

I'd like to write a program that takes the current time (hh:mm) in the shell script and branches conditions between 12:00 and 13:00 in the if statement.In this case, sec_time=date'+%h'start_time = 12:...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.