lucee.Componentcommandbox.system.modules_app.system-commands.commands.fileAppend
Append to existing text in a file. Will add a newline automatically . {code:bash} fileAppend "My new line" file.txt {code} . You can pipe text into it. . {code:bash} echo "My new line" | fileAppend file.txt {code} . This command is also used internally for redirection when you use the >> symbol. . {code:bash} echo "Step 3 complete" >> log.txt {code}
Method Summary | |
---|---|
any
|
run(any contents='', string file)
|
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
contents
- Contents to append to the filefile
- File to append to