Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think you're suffering from PEBCAC ;)

You can append content to a file using >>:

PS C:\Users\rich> "Foo" > 1.txt

PS C:\Users\rich> cat .\1.txt

Foo

PS C:\Users\rich> "Bar" >> 1.txt

PS C:\Users\rich> cat .\1.txt

Foo

Bar



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: