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
For completeness, using cut
cut -d : -f 2 <<< $var
And using only bash:
IFS=: read a b <<< $var ; echo $b