For example, when we want to convert file.ods to file.xls on current folder, we use the following line in bash:
soffice --headless --convert-to xls file.ods
To mass convert all file in current folder, use the following code:
for i in *.ods;
do soffice --headless --convert-to xls "$i" ;
done
Sample code can be found in https://github.com/joielechong/collection_of_script under bash folder.
Tidak ada komentar:
Posting Komentar
Silahkan tinggalkan komentar anda: