Difference between revisions of "Linux command: md5sum"

From RHS Wiki
Jump to navigation Jump to search
m
Tag: visualeditor
Tag: visualeditor
 
Line 1: Line 1:
== Check diferences between files in two directories ==
+
==Check diferences between files in two directories==
 +
<syntaxhighlight lang="bash">
 +
tree -L 1
 
.
 
.
 
 
├── 3.0
 
├── 3.0
 
+
└──3.1
└──3.1<syntaxhighlight lang="bash">
+
</syntaxhighlight><syntaxhighlight lang="bash">
 
find . -type f -exec md5sum {} \; | sed 's/\.[01]//g'| sort | grep -v .php$ | uniq -c | sort -nr
 
find . -type f -exec md5sum {} \; | sed 's/\.[01]//g'| sort | grep -v .php$ | uniq -c | sort -nr
 
</syntaxhighlight>the lines that start with 1 are the files changed
 
</syntaxhighlight>the lines that start with 1 are the files changed

Latest revision as of 12:10, 17 January 2020

Check diferences between files in two directories[edit]

tree -L 1
.
├── 3.0
└──3.1
find . -type f -exec md5sum {} \; | sed 's/\.[01]//g'| sort | grep -v .php$ | uniq -c | sort -nr

the lines that start with 1 are the files changed