I was looking in the NCO User Guide and the forum but couldn't find help. I'd like to delete the content of history (and history_of_appended_file) but not the wholes attributes themselves.
Before knowing about -h option, I did a lot of modifications to some files within script loops and got huge history I want to get rid of. I'm working with WRF files.
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I was looking in the NCO User Guide and the forum but couldn't find help. I'd like to delete the content of history (and history_of_appended_file) but not the wholes attributes themselves.
Before knowing about -h option, I did a lot of modifications to some files within script loops and got huge history I want to get rid of. I'm working with WRF files.
Thank you
You can use ncatted:
ncatted -O -a history,global,o,c,"" ~/nco/data/in.nc ~/foo.nc