📅  最后修改于: 2022-03-11 14:50:51.681000             🧑  作者: Mango
Just use function split in awk command to split a line into an array 'a'
using a choosen string as delimiter as for example ", " in next use case:
echo "hi; bye; hey" | awk '{split($0,a,"; "); print a[3],a[2],a[1]}'