Azitech

Azimout's Linux weblog

calc tips

leave a comment »

  1. To insert >1 lines in a Calc sheet, select an equal number of lines and press “insert line”
  2. When exporting to .csv, empty cells are not exported. To have a “” where there were empty cells, add the formula ="" in all those empty cells
  3. If there are too many empty cells, it might be simpler to use sed to solve this
  4. To append }, at the end of each line of the .csv file (to be used as a C array), run sed 's/$/},/g' old_csv > new_csv
  5. Instead, to prepend { to each line, run sed 's/^/{/g' old_csv > new_csv
Advertisements

Written by azimout

10/05/2010 at 10:25

Posted in Howto

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: