Is it possible to write to an excel sheet(any type) from a bash script ?
What I am looking for is something along these lines :
sed -e :a -e '$!N; s/\n/ /; ta' file.c > #( first coloumn ,second row of the spread sheet )
echo "$cdvar" > #( second coloumn ,third row of the spread sheet )
Thank you for your replies and suggestion .
You could write excel by
bash,perl,python, .. I think that each program language has its solutions.bash
You could use
joinorawk, and I think that there are other solutions.join
If you want
jointo files with same column, look these posts: Bash join command and join in bash like in SASawk
You could write a csv, but you could
renameintoxlsand then with excel, gnumeric, or other programs, it is recognized like xls.when you modify xls with excel, gnumeric, or other programs, and save in xls,
you could not read by bash. So that @Geekasaur recommended
perlorpythonsolutions.perl
You could write
xlsin perl, follow a sample:And then you could modify
xlswithSpreadsheet::ParseExcelpackage: look How can I modify an existing Excel workbook with Perl? and reading and writing sample [Editor’s note: This link is broken and has been reported to IBM]python
You could write real
xlsin python, follow a sample:And then you could also
convertto csv with this sourceforge project.And if you could convert to csv, you could rewrite xls.. modifing the script.