In this script, the second echo statement doesn't do anything.
#!/bin/bash
echo "Start folder create..."
find . -name "*.zip" | while read filename; do
foldername="${filename%.*}";
mkdir -p "$foldername";
mv "$filename" "$foldername";
echo "made directory $foldername" ;
done;
All the other commands work. What did I do wrong?
Best Answer
You've got it over multi lines, but have the
;
.Your script should look like this: