cli icon indicating copy to clipboard operation
cli copied to clipboard

Quote fields when printing csv form for bulk results

Open UmanShahzad opened this issue 3 years ago • 0 comments

This returns really messed up CSV output because the fields aren't quoted:

$ printf "%s\n" 43.250.184.0 43.250.186.0 43.250.187.0 | ipinfo -f abuse
ip,abuse_address,abuse_country,abuse_country_name,abuse_email,abuse_name,abuse_network,abuse_phone
Flat C, 23/F, Lucky Plaza,, 315-321 Lockhart Road, Wan Chai, Hong Kong, Hongkong Hongkong 999999,HK,Hong Kong,[email protected],CLEARDDOS TECHNOLOGY CO LIMITED administrator,43.250.184.0/22,+1 5136205605
Flat C, 23/F, Lucky Plaza,, 315-321 Lockhart Road, Wan Chai, Hong Kong, Hongkong Hongkong 999999,HK,Hong Kong,[email protected],CLEARDDOS TECHNOLOGY CO LIMITED administrator,43.250.184.0/22,+1 5136205605
Flat C, 23/F, Lucky Plaza,, 315-321 Lockhart Road, Wan Chai, Hong Kong, Hongkong Hongkong 999999,HK,Hong Kong,[email protected],CLEARDDOS TECHNOLOGY CO LIMITED administrator,43.250.184.0/22,+1 5136205605

UmanShahzad avatar Dec 08 '21 07:12 UmanShahzad