Convert Excel Files to CSV in Linux

Post Reply
User avatar
Eli
Senior Expert Member
Reactions: 183
Posts: 5334
Joined: 9 years ago
Location: Tanzania
Has thanked: 75 times
Been thanked: 88 times
Contact:

#1

Assume your excel files are in some directory, move into that directory and execute the command below which uses LibreOffice in bash/Terminal to convert all your excel files into CSV files:

  1. for i  in *.xlsx; do  libreoffice --headless --convert-to csv "$i" ; done

Or install csvkit:

  1. sudo apt-get install csvkit

and use it to convert your excel files into CSV files as

  1. in2csv data.xlsx > data.csv

See more excel_to_csv
0
TSSFL -- A Creative Journey Towards Infinite Possibilities!
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux and Unix Based Operating Systems”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests