• 48954246@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    ·
    edit-2
    8 months ago

    Feels dangerous to run. What happens if the file already exists and has something important in it?

    touch -a is probably better

    • gaterush@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      8 months ago

      The other command could just be printf '' >> file to not overwrite it. Or even simpler >>file and then interrupt