tomnomnom / anew

A tool for adding new lines to files, skipping duplicates
MIT License
1.34k stars 147 forks source link

Update main.go #18

Closed SecGus closed 1 year ago

SecGus commented 1 year ago

Added functionality to specify multiple file names as arguments, if string not found in any of the files, it will be added to the last file specified as an argument, or, to the file specified in the -o flag (also a new addition, this flag takes priority).

If the string is found in any of the listed files (not counting the -o file), nothing will be done.