bash cut from delimiter code example
Example 1: cut bash
cut(1) - remove sections from each line of files
-d, --delimiter=DELIM
use DELIM instead of TAB for field delimiter
-f, --fields=LIST
select only these fields; also print any line
that contains no delimiter character, unless the -s
option is specified
Example 2: bash cut delimiter last field
echo 'maps.google.com' | rev | cut -d'.' -f 1 | rev