Created
June 6, 2013 16:10
-
-
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.
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
% 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