So I have this string:
$var=server@10.200.200.20:/home/some/directory/file
I just want to extract the directory address meaning I only wan
This might work for you:
echo ${var#*:}
See Example 10-10. Pattern matching in parameter substitution