I have a workflow where I copy the Mac path on the server and replace it with a Windows path. I'm using this bash function in my workflow:
function nas () {
echo -E $1 \
| sed -e 's/^smb://g' \
| sed -e 's/\//\\/g'
}
query=$1
nas $query
So I can convert this path:
smb://corp.atm.com/files/interdivisional/Graphics/11_DISPLAY/Neutral
to this:
\\corp.atm.com\files\interdivisional\Graphics\11_DISPLAY\Neutral
but I'd like to replace this part
\\corp.atm.com\files\interdivisional\Graphics\11_DISPLAY\Neutral
to this: I:\11_DISPLAY\Neutral
Any ideas?
Thank you!