ysf / anewer

anewer appends lines from stdin to a file if they don't already exist in the file. This is a rust version of https://github.com/tomnomnom/anew
https://github.com/ysf/anewer
GNU General Public License v3.0
57 stars 4 forks source link

Add option to open [filename] with O_CREAT #7

Closed nil0x42 closed 3 years ago

nil0x42 commented 3 years ago

by default, anew opens file with O_CREAT. despite liking anewer's behavior of failing i file doesn't exist, it would be nice to have a flag -c, --create to be able to ask anewer to create the file if it doesn't exist yet

kpcyrd commented 3 years ago

Hey! Can you try #6?

nil0x42 commented 3 years ago

Nice :+1: , i was also about to post another issue about the newline