Unix parsing pipe delimited format string in ksh

前端 未结 2 657
闹比i
闹比i 2021-01-21 22:07

I am writing ksh script to parse a pipe delimited string

export dummy=\"abc\"  
echo \"123|456|789\" | awk \'{split($0,output,\"|\"); print output[3] output[2] o         


        
2条回答
提交回复
热议问题