LinuxMoz

Linux Stuff && Coffee

Netapp Create, Append or Overwrite a File (Like Cat Blah > file.txt)

How to create / overwrite a file on a Netapp, simialr to the unix / linux command “cat blah > file.txt”

This Netapp HowTo is useful for the following

  • Netapp add text to file
  • Netapp overwrite file
  • Netapp edit file

Netapp Create a File & add text to a File

The following command will create the file /etc/ironman.txt and add two lines “Pepper Potts” and “War Machine”

1
2
netapp> wrfile -a /etc/ironman.txt "Pepper Potts"
netapp> wrfile -a /etc/ironman.txt "War Machine"

The contents of the above file will look like this:

1
2
3
netapp> rdfile /etc/ironman.txt
Pepper Potts
War Machine

You might be interested in my other Netapp Commands & HowTo’s.

Comments