For example there is a text "reachable via ether1" or "reachable.via.ether1"
in Linux we have a command awk where we can specify separator as column. where i can specify any corrector as separator. lets say in example text above how can i use wildcard type search by specifying separator as space " " or dot ".".
for example i want this result.
echo "reachable.via.ether1" | awk 'BEGIN { FS = "." } ; { print $2 }'
via
Thanks,
Yousuf