diff -qr dirA dirB |grep -v -e keyword1 -e keyword2 |sort > diffs.txt
diff -r : recursively compare all files and files in subdirectories
diff -q : output only whether files differ
|grep -e : grep multiple keywords in one command
|grep -v : inverse grep, catch the lines not containing keywords
|sort : sort the result
http://hints.macworld.com/article.php?story=20070408062023352
好用!
文章標籤
全站熱搜

this post is very use ful https://www.mobilereviewgroup.ooo/2018/07/best-ipad-apple-pencil-apps.html
您好,想請問如果我兩個不同資料夾內的檔案名稱不同,但其餘皆相同有什麼方式比較嗎(像是 aabb_0101 vs. aabb_1010 ; aabc_0101 vs. aabc_1010) ? 我如果用上面這指令會出現全部都不相同的情況 謝謝