awk split on comma code example
Example 1: awk split on comma
$ echo "12|23|11" | awk '{split($0,a,"|"); print a[3]; print a[2]; print a[1]}'
Example 2: awk split on comma
$ echo "12:23:11" | awk '{split($0,a,":"); print a[3]; print a[2]; print a[1]}'