I am trying to read specific path(/opt/links/stances/2) from where I pulled out result using curl command.
Curl command:-
curl -s http://localhost:8080/stances/1/Dirs
Result from above command:-
{"LocalWorkingDir":"/opt/links/stances/1","Workers":[{"WorkerInstanceID":2,"WorkerHostname":"yolo.automation.local","WorkerInstanceRunDir":"/opt/links/stances/2"}]}
command i am trying to read /opt/links/stances/2 from generated output :-
curl -s http://localhost:8080/stances/1/Dirs | sed 's|$1|" "|' | awk '{print $1}'
I am ending up with no result. Please help me with command to read the path(/opt/links/stances/2). thanks in advance.