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