diff --git a/files/archive_subfolders b/files/archive_subfolders index f0b2e89..536c938 100755 --- a/files/archive_subfolders +++ b/files/archive_subfolders @@ -16,13 +16,13 @@ function fsize() { echo Archive the following folders: -find . -mindepth 1 -maxdepth 1 -type d | sort | tr \\n " " +find . -mindepth 1 -maxdepth 1 -type d | tr \\n " " echo '' echo ' to quit' read foo -find . -mindepth 1 -maxdepth 1 -type d -print0 | sort | while read -r -d "" d; do +find . -mindepth 1 -maxdepth 1 -type d -print0 | while read -r -d "" d; do echo -n $d tar cvf "$d.tar" $d > "$d.tar.txt" & PID=$! @@ -43,7 +43,7 @@ done read foo } -find . -mindepth 1 -maxdepth 1 -type d -print0 | sort | while read -r -d "" d; do +find . -mindepth 1 -maxdepth 1 -type d -print0 | while read -r -d "" d; do ls -sh "$d.tar" gzip "$d.tar" PID=$!