fileAppend

Parameters:
Name Type Required Default Hint
contents string true Contents to append to the file
file string true File to append to

Command Usage

Append to existing text in a file. Will add a newline automatically

fileAppend "My new line" file.txt
You can pipe text into it.
echo "My new line" | fileAppend file.txt
This command is also used internally for redirection when you use the >> symbol.
echo "Step 3 complete" >> log.txt