Answers for "awk split on comma"

1

awk split on comma

$ echo "12|23|11" | awk '{split($0,a,"|"); print a[3]; print a[2]; print a[1]}'
Posted by: Guest on May-06-2020
0

awk split on comma

$ echo "12:23:11" | awk '{split($0,a,":"); print a[3]; print a[2]; print a[1]}'
Posted by: Guest on May-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language