I train in powershell 3.0, and I try to get the contents of the file in bytes by sending it along the pipeline to join the result, by default there is one byte per line, and then send the result in the file.
Here's the command I'm using:
get-content 'My file' -Encoding byte | $_ -join ' ' | Out-File -path 'My result file'
So, to summarize, does anyone know how to use -joinafter the pipeline?
source
share