You are not logged in.

#1 03 Mar 2017 18:48

wcdsoft
New Member
Registered: 03 Mar 2017
Posts: 1

ss64 - powershell - clear-content

SS64 says:

Clear-Content

Delete all the contents of a file without deleting the file itself.

Related:

Clear-Item is similar to Clear-Content, but works on aliases and variables, instead of files.
Add-Content - Add to the content of the item
Equivalent bash commands: useradd - Create new user accounts

useradd is NOT the equivalent bash command - cannot think what it is but it is not useradd - maybe something like 'cat <NUL >file'.

Offline

#2 03 Mar 2017 20:05

Simon Sheppard
Admin
Registered: 27 Aug 2005
Posts: 1,130
Website

Re: ss64 - powershell - clear-content

Good catch, I have fixed that now

Thanks for the heads up

Offline

Board footer

Powered by