Link to home
Start Free TrialLog in
Avatar of rwskas
rwskasFlag for United States of America

asked on

Powershell unix equivilent of vi -b

Does anyone know the Powershell equivilent to the unix command 'vi -b'? I would like to be able read the line end characters of a file.
Avatar of khairil
khairil
Flag of Malaysia image

Avatar of krf1963
krf1963

If you use the command:

get-content -encoding byte c:\file.txt

Powershell returns an array of bytes which is the content of the file. You can then examine the whole file a byte at a time.
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rwskas

ASKER

That worked, THanks