maolopez / echo-a-into-a-JSON-pass

echo a "\\" into a JSON file pass looks simple, however it can be tricky. Here an example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

echo-\\-or-!-into-a-JSON-pass

echo a "\\" or a "!" into a JSON file pass looks simple, however it can be tricky. Here an example how to include the string "production\\frontend" and "MyPass!" into a file like this:

secured {\n cfs-user = "production\\frontend"\n cfs-pass = "Jencomart1"\n PromApp-user = "MyPromAppUser"\n PromApp-pass = "MyPromApppass!"\n }

The nohup has been redirected in order to avoid Jenkins builds to hang. Files Debug-1 and Debug-2 will show you how it works!

About

echo a "\\" into a JSON file pass looks simple, however it can be tricky. Here an example


Languages

Language:Shell 100.0%