sorting doesnt help

This commit is contained in:
Ville Rantanen
2016-02-16 09:12:49 +02:00
parent c7c1c20c70
commit a48183e19d

View File

@@ -16,13 +16,13 @@ function fsize() {
echo Archive the following folders: 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 ''
echo '<ctrl-c> to quit' echo '<ctrl-c> to quit'
read foo 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 echo -n $d
tar cvf "$d.tar" $d > "$d.tar.txt" & tar cvf "$d.tar" $d > "$d.tar.txt" &
PID=$! PID=$!
@@ -43,7 +43,7 @@ done
read foo 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" ls -sh "$d.tar"
gzip "$d.tar" gzip "$d.tar"
PID=$! PID=$!