I would like to add a name
in the middle of dirPath
#!/bin/bash
name='agent_name-2'
dirPath='/var/azp/1/s'
I want to insert agent_name-2
after /var/azp
in dirPath
, and store it in a separate variable result
like this
result=/var/azp/agent_name-2/1/s