TIL in bash/shell, “>” redirects to and overwrites a file if it exists, while “>>” redirects to and appends to a file if it exists. I’ve been using these for years and never knew the distinction until I needed it
If you enjoyed my content for some reason, I'd love to hear from you! Here are some options:
- You can buy me a coffee!
- You can share or reply to this post on Twitter.
- You can write a reply on your own site and submit the URL as a webmention via the form below.
- Or you can just contact me!