Changes
Jump to navigation
Jump to search
← Older edit
Linux command: md5sum
(edit)
Revision as of 12:10, 17 January 2020
55 bytes added
,
12:10, 17 January 2020
m
→Check diferences between files in two directories
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
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version