10

Let's say I have a txt file like this:

Mario
[email protected]
+399038259953
Luigi
[email protected]
+395902385093
Yoshi
[email protected]
+81293565291

[and so on for 300 lines...]

How do I make a .ods (or .xls, or .csv, it does not matter) file which has three rows (name, email, phone number)? I need it so I can easily convert it in a .vcf file and bulk save these numbers in my phone.

Thanks

muru
  • 193,181
  • 53
  • 473
  • 722
Dario Costa
  • 121
  • 8

1 Answers1

20

Use paste to make a csv:

 paste -d,  - - - < file

Output:

Mario,[email protected],+399038259953
Luigi,[email protected],+395902385093
Yoshi,[email protected],+81293565291
pLumo
  • 26,204
  • 2
  • 57
  • 87