How to use split
function to split by "\."?
For example, first consider splitting into::
echo "03:26:12" | awk '{split($0,a,":"); print a[3] a[2] a[1]}'
What produces this conclusion:
122603
But if the input line is instead:
echo "03\.26\.12" | awk '{split($0,a,???); print a[3] a[2] a[1]}'
With the desired output:
122603
What should be ???
?
source share