On a linux server i have a script that does a curl and returns an output as below:
/usr/bin/curl -k -s https://example.com:18080/seriessnapshot?substringSearch=OpenFin%20Memory | cut --characters=44-51 | sort --unique | sed -e 's/iessnaps//g' -e '/^$/d'
AP711671 AP714628 AP715911 AP716960 AP717267 AP717938 AP718017 AP718024 AP721570 AP721875 AP722002 AP722622
I need to then build a URL from the output for each AP number, so for example i would need the output to return as below for each AP number:
everything but the AP is static, the only dynamic part of the URL would be the AP number.
Would it be possible to do this from the same script i use to return just AP numbers and if so how can i incorporate it into that script?