I would like to know the command equivalent to: od −v −t u2 −w4 −An datafile.data | ./datafile for windows machine. here ./datafile is fortran compiled o/p using the following command gfortran datafile.f -o datafile
Get-Content -Raw -Encoding Byte "datafile.data" | ForEach-Object { "{0:D5}" -f [BitConverter]::ToUInt16($_, 0) } | Out-File -Encoding ASCII -FilePath "output.txt
But, it thorws error