I am executing below command to get particular string from json output , here I am grepping with string "uri" which prints all the required fields.
# curl -X GET --insecure -H "$(cat /token/.bearer_header)" http://localhost:3000/api/search?query=% | sed -e
's/[{}]/''/g' | awk -v RS=',"' -F: '/^uri/ {print $2}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2410 0 2410 0 0 40166 0 --:--:-- --:--:-- --:--:-- 40847
"ab/any-dashboard"
"ab/many-dashboard"
"ab/too-dashboard"
"ab/maximum-dashboard"
"ab/minimum-dashboard"
now I want to replace for example "ab/any-dashboard" to only any-dashboard, which means above command should print like below
any-dashboard
many-dashboard
too-dashboard
maximum-dashboard
minimum-dashboard
can anyone help me here I tried several things with sed but not getting exact result, and I dont have knowledge in JQ.
Regards, SAM