Skip to content

Append text to a file on the condition that a regex isn't matched

Notifications You must be signed in to change notification settings

ashiguruma/conditional-file-append

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Conditional File Append

Append text to a file on the condition that a regex isn't matched.

Usage

condappend ^regex ./path/to/myfile 'my string'

If ^regex isn't present then 'my string' will be appended to myfile.

About

Append text to a file on the condition that a regex isn't matched

Resources

Stars

Watchers

Forks

Packages

No packages published