POWERSHELL HANDLE FILE CONTENTS
Contents
How to add contents to a file
To add contents to a file we can use the Add-Content
cmdlet.
|
|
How to add the contents of a file to another file
To get a file contents we can use the Get-Content
cmdlet.
|
|
Note
This is similar to use cat
and redirection >>
in the Unix world.
|
|
How to combine the above two commands
|
|