fileWrite

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

Command Usage

Write a file, overwriting it if it exists.

fileWrite "My file contents" file.txt
You can pipe text into it.
echo "My file contents" | fileWrite file.txt
This command is also used internally for redirection when you use the > symbol.
dir > fileList.txt