shellscript tag

50 questions


2 answers
126 views
0
I want to select a file name with a date that I generated in the past in the script.

Currently, there is a file that was granted using the date command.■ Example: 20180101.zip to 20180131.zipFrom 9:00 on the selected date to 9:00 on the next daywithout unzipping the zip, the line that...

2 years ago

3 answers
141 views
0
I want to write a shell script that searches in any folder and handles any files that match the criteria.

There are two things I want to do, but I'm having trouble writing well.The following are the things I would like to deal with.1Search recursively for *.rar in folder AZip all *.rar files that hit the ...

2 years ago

4 answers
116 views
0
[No Language] How to erase parent elements with child elements with specific strings in XML

From the XML format file below (Example 1. Before Conversion)I would like to delete the whole element that contains the testThere are about 2000 sparse elements containing tests.I'd like to make it ab...

2 years ago

3 answers
130 views
0
How to Stop a Shell Script with Ctl+c

#!/bin/shparam_list=(param1 param2 param3)for parameter ${param_list[@]}do python sample.py $paramdoneAs you can see above, when you pass command line arguments to a file and run them with a for state...

2 years ago

2 answers
116 views
0
Solaris 10 file name garbled

This is my first time asking a question.Characters get garbled when creating a Japanese directory name creation in the Soalris 10 environment. Does anyone know a similar phenomenon or a way to avoid ...

2 years ago

4 answers
98 views
0
How do I copy the latest 1 file below a specific directory on my server?

I bought a cheap network camera.It's forwarded via ftp, but I'm looking for a good idea because the range of settings is small.(dbpower c300e with pros and cons on Amazon) /2016-11-08 / Capture/13_57_...

2 years ago

1 answers
163 views
0
How to use environment variables in awk

Assume that the environment variable N contains a number.awk NR>NWhat should I do if I want to use the value of the variable in the awk script as shown in ?

2 years ago

1 answers
106 views
0
How do I check if the file names are numbered consecutively or missing?

This is a general and ambiguous question, but when you download or generate a large number of files, such as 1000 or 10000 files, by operating on the terminal, Are the files properly serialized (no fi...

2 years ago

1 answers
137 views
0
How to Detect OS Boot Completion for VirtualBox Virtual Machines

How do I detect that the VirtualBox virtual machine (VM) operating system is completely booted?I'm starting a VM with VirtualBox and developing it.So far, when I started working on it, I started the V...


3 answers
69 views
0
Get an equal string after a specific string in a shell script

On Solaris, I want to use a shell script (bash) to extract a string from a single line of characters retrieved from a CSV format file up to a comma after an equal for a specific string, but I don't kn...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.