md5 all files in a directory tree

前端 未结 6 1653
庸人自扰
庸人自扰 2021-02-07 04:43

I have a a directory with a structure like so:

.
├── Test.txt
├── Test1
│   ├── Test1.txt
│   ├── Test1_copy.txt
│   └── Test1a
│       ├── Test1a.txt
│       └─         


        
6条回答
  •  遥遥无期
    2021-02-07 05:40

    md5deep -r $your_directory | awk {'print $1'} | sort | md5sum | awk {'print $1'}
    

提交回复
热议问题