• @48954246@lemmy.world
    link
    fedilink
    English
    21
    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
      98 months ago

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