skip to Main Content

Redis – Search segment and append value at the end

In a file I want to append a string after the specific segment with key "sys-mgmt-agent". This is the file content: sys-mgmt-agent: networks: edgex-network: aliases: - edgex-sys-mgmt-agent depends_on: - redis volumes: - /proc/uptime:/proc/uptime - /var/log/auth.log:/var/log/auth.log - ${HOST_SECURITY_FILE_PATH}edgex-redis:/tmp/edgex/secrets/edgex-redis:z edge-orchestrator: networks: edgex-network:…

VIEW QUESTION

Parsing Apache logs with bash

I want to parse an Apache log file such as: 1.1.1.1 - - [12/Dec/2019:18:25:11 +0100] "GET /endpoint1/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" 1.1.1.1 - - [13/Dec/2019:18:25:11 +0100] "GET /endpoint1/ HTTP/1.1" 200 4263 "-"…

VIEW QUESTION

Update numbers in filenames – CentOS

I have a set of filenames which are ordered numerically like: 13B12363_1B1_0.png 13B12363_1B1_1.png 13B12363_1B1_2.png 13B12363_1B1_3.png 13B12363_1B1_4.png 13B12363_1B1_5.png 13B12363_1B1_6.png 13B12363_1B1_7.png 13B12363_1B1_8.png 13B12363_1B1_9.png 13B12363_1B1_10.png [...] 13B12363_1B1_495.png 13B12363_1B1_496.png 13B12363_1B1_497.png 13B12363_1B1_498.png 13B12363_1B1_499.png After some postprocessing, I removed some files and I would like to…

VIEW QUESTION
Back To Top
Search