8 lines
103 B
Bash
8 lines
103 B
Bash
|
|
for f in *; do
|
|
if [ -d "$f" ]; then
|
|
echo $f
|
|
tar -czvf $f.tar.gz "$f"/
|
|
fi
|
|
done
|