rwskas
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked, THanks
This might help you, http://blog.wisefaq.com/2010/01/20/reading-the-end-of-a-log-file-with-powershell/