Last active
January 16, 2019 03:45
-
-
Save mindon/e78bf4cc9180d64e20f50f571daf12a8 to your computer and use it in GitHub Desktop.
List files in one folder but not in another
This file contains hidden or 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
| #/bin/sh | |
| # only files, subfolders excluded | |
| # example diff <(ls -FL ./one/ | grep -v /) <(ls -FL ./another/ | grep -v /) | awk '{if($1=="<") print $2;}' | |
| diff <(ls -FL $1 | grep -v /) <(ls -FL $2 | grep -v /) | awk '{if($1=="<") print $2;}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment