Sample Header Ad - 728x90

Can we pass directory list from find command as argument to another find command and execute md5sum?

0 votes
1 answer
51 views
I want to list all the directories in present directory and pass those directories as a argument to another find command The below example will explain it correctly.
$ find . -maxdepth 1 -type d
.
./dir1
./dir2
./dir3
./dir4

$ echo -e "\n" ; find (above directories as argument) -exec md5sum {} +
So that I get checksum values for every files in a folder separately, separated by space. I think the above example explains the problem correctly Sorry for my bad English and I have very little knowledge on Linux command please forgive me Thank you in advance.
Asked by user27072144 (1 rep)
Oct 5, 2024, 09:58 AM
Last activity: Oct 5, 2024, 01:28 PM