Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

[Bash] Can anyone help me create a quick bash script?

I need to create a list of files with their MD5 sums in this format:

proprietarfiles.txt

Effectively the script needs to recursively run through folder and list the files as well as the directory it's in (along with its parent(s)).
aint my sig design skills sick?
A simple recursive bash script; adapt it with your md5 function.


function md5()
{
#Your md5 function
}

function rec()
{
for file in $1*
do
if [ -d $file ];
then
rec $file/
else
md5
fi
done
}

rec ~/


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by 0u1lawJul 18, 2020 11:18 AM 1 203 Jul 18, 2020 11:18 AM
Last Post: Pernat1y
[Shell] by friiz1337Feb 6, 2020 02:37 PM 8 369 Feb 6, 2020 02:37 PM
Last Post: friiz1337
[Shell] by alexreturn2Nov 22, 2019 08:40 AM 1 181 Nov 22, 2019 08:40 AM
Last Post: netWalker