Created
October 20, 2020 17:21
-
-
Save co-devs/8acb38ba0f11dcc81fd29c0dfec267c4 to your computer and use it in GitHub Desktop.
Print first 32 bytes of each file in dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$files = gci ./; foreach ($f in $files) {writeoutput `n`n$f; $bytes = get-content $f.FullName -encoding byte -totalcount 32; write-output $bytes | format-hex} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment