Menu

Delete whole history content wothout deleting history attribute

Help
2023-09-05
2023-09-05
  • Paul MAUGER

    Paul MAUGER - 2023-09-05

    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

     
    • Charlie Zender

      Charlie Zender - 2023-09-05

      You can use ncatted:
      ncatted -O -a history,global,o,c,"" ~/nco/data/in.nc ~/foo.nc

       
      👍
      1

Log in to post a comment.

MongoDB Logo MongoDB