skip to Main Content

Iterate over files in folder, rename them and switch the nth occurence of a character with another character – CentOS

I need your help trying to understand how I could combine some actions to get to the expected results. So i have the following path, in which I have many files: /home/application/Upload_Actions/TestFiles/ Now, the files have the following name: DATE20220703.2130_Network=MainPipeline,Action=Upload_File,Element=X988Schema_1000_statsfile.csv…

VIEW QUESTION

How to Iterate Json key value pair and get the value and store in another json using Bash Script with JQ utility – Amazon web services

Im writing bash script for AWS Secret Manager . Question: I have one aws secret manager it will contain multiple secret Example: aws secretsmanager get-secret-value --secret-id Example | jq -r ".SecretString" input.json {"Username":"admin","Password":"admin","Endpoint":"localhost","DatabaseName":"example","Port":"3306"} Using this command got a json output…

VIEW QUESTION

jq, getting an unknown parent node after finding it with one of its children value – Ubuntu

I have a complex (at least for me) issue with jq, and this structure : { "os": { "ubuntu": { "16.04": { "codename": "xenial", "bootstrap": "preseed", "guest_type": "ubuntu64Guest", "iso_name": "ubuntu-16.04.7-server-amd64.iso", "iso_checksum": "9bb30a2ea6466b0c02aacfa96f6e3516", }, "18.04": { "codename": "bionic", "bootstrap": "preseed", "guest_type":…

VIEW QUESTION
Back To Top
Search