You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
271 B
14 lines
271 B
3 years ago
|
function search() {
|
||
|
FILES=$(ls $1)
|
||
|
for f in $FILES
|
||
|
do
|
||
|
if [ -d $1$f ];
|
||
|
then
|
||
|
echo "$1$f is a directory"
|
||
|
search $1$f/
|
||
|
else
|
||
|
echo "$1$f is a file"
|
||
|
md5sum < $1$f >> $1md5
|
||
|
fi
|
||
|
done
|
||
|
}
|