Skip to content

Instantly share code, notes, and snippets.

@stig
Created June 6, 2013 16:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stig/5722747 to your computer and use it in GitHub Desktop.
Save stig/5722747 to your computer and use it in GitHub Desktop.
Find the path/name of a newly created file after some operation has run.
% cd /tmp
% mkdir foo
% touch foo/bar
% touch foo/quux
% find foo > t
% touch foo/qzzaoeu
% (find foo; cat t) | sort | uniq -u
foo/qzzaoeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment