Skip to content

Instantly share code, notes, and snippets.

@co-devs
Created October 20, 2020 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save co-devs/8acb38ba0f11dcc81fd29c0dfec267c4 to your computer and use it in GitHub Desktop.
Save co-devs/8acb38ba0f11dcc81fd29c0dfec267c4 to your computer and use it in GitHub Desktop.
Print first 32 bytes of each file in dir
$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