Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created February 8, 2017 20:41
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 bielawb/75f07ff9a2e524c3f870073256e7839e to your computer and use it in GitHub Desktop.
Save bielawb/75f07ff9a2e524c3f870073256e7839e to your computer and use it in GitHub Desktop.
Compare results from ls run in two different drives (e.g. in order to perform the sync)
Import-Module HistoryPx
ls e:\
ls f:\
Get-History
# Output different than usual... Output looks interesting...
# CommandId match the line numbers...
diff (Get-History -Id 2).Output (Get-History -Id 3).Output -Property Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment