sorting doesnt help
This commit is contained in:
@@ -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 '<ctrl-c> 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=$!
|
||||
|
||||
Reference in New Issue
Block a user