bash - Command to print the output in a row format -
i trying print below output in row format csv file. can help me using awk or bash ?
server abc.com osbits x64 ostype windows
i want print output , forwards csv format
abc.com x64 windows
this works i'm sure there's more idiomatic way it:
awk '{printf "%s%s", ((nr==1)?"":", "),$2}'
bash shell awk
No comments:
Post a Comment