Skip to content

Instantly share code, notes, and snippets.

@douglascodes
Last active August 29, 2015 14:05
Show Gist options
  • Save douglascodes/2afd8b2db1fea5196bad to your computer and use it in GitHub Desktop.
Save douglascodes/2afd8b2db1fea5196bad to your computer and use it in GitHub Desktop.
Reads two sorted files as STDIN, one strips forward slashes if they exist
diff --suppress-common-lines -yw <(sort -u restore_log) <(sed -r 's/^\///g' <(sort -u original_log) )
@douglascodes
Copy link
Author

I needed to compare a restored file structure to the original to validate a backup procedure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment