From a48183e19d18301060f283e9d061eb4d05156bb9 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Tue, 16 Feb 2016 09:12:49 +0200 Subject: [PATCH] sorting doesnt help --- files/archive_subfolders | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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=$!