Data ONTAP enables you to read data from standard input and write it into the specified file.
A user who has the capability to execute the wrfile command can write over or append data to any file on the storage system. Exercise caution about security and data corruption issues when using the wrfile command.
filename is the name of the file you want to write or append to. It must be a fully qualified path name. If filename does not already exist, the wrfile command will create it.
The interrupt character is Ctrl-c. If wrfile is run from the console, interrupting wrfile causes all characters typed on the same line as the interrupt character to be lost. The storage system will also issue an "interrupted system call" error message.
toaster> wrfile /etc/test line#1
read: error reading standard input: Interrupted system call toaster> wrfile -a /etc/test "line#2" toaster>
See the na_wrfile(1) man page for additional examples.