• @[email protected]
    link
    fedilink
    English
    21
    edit-2
    1 year ago

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

    touch -a is probably better

    • @[email protected]
      link
      fedilink
      91 year ago

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