skip to Main Content

sed/awk hide/mask field in a json file

I am trying to mask/hide a value of a field in a json file. I have json that looks something like this: "PLUSDATA": { "global": { "auth_type": "login", "passkey": "SENSETIVE_CONTENT_TO_BE_HIDDEN", "src_intf": "Loopback0", "timeout": "5" } }, I'd like to parse…

VIEW QUESTION

How to explain that different ways to execute script have different results – Ubuntu

Here is my script: #!/bin/sh echo "$PATH" [ "$UID" -eq 0 ] || exec sudo "$0" "$@" echo "$UID" echo "$SUDO_USER" If I run this script by ./test.sh, this is the result: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ./test.sh: 3: [: Illegal number: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ./test.sh:…

VIEW QUESTION

Run shell script in non interactive mode in Dockerfile

I'm trying to execute this script https://repo.anaconda.com/miniconda/Miniconda3-py38_23.1.0-1-Linux-x86_64.sh in a Dockerfile. # I have already downloaded the file RUN bash Miniconda3-py38_23.1.0-1-Linux-x86_64.sh When I launch it I got this error: RUN bash Miniconda3-py38_23.1.0-1-Linux-x86_64.sh: #0 0.411 #0 0.411 Welcome to Miniconda3 py38_23.1.0-1 #0…

VIEW QUESTION
Back To Top
Search