Previous

awk

echo "hello::there::friend" | awk -F "::" '{print $1, $3}’

Output hello friend

cut can only accept a single character as a field delimiter, while awk, as shown, is much more flexible