57 | | 6 Compress the current subdirectory (tar.lzma) |
58 | | Pwd=`basename %d /` |
59 | | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
60 | | read tar |
61 | | if [ "$tar"x = x ]; then tar="$Pwd"; fi |
62 | | cd .. && \ |
63 | | tar cf - "$Pwd" | lzma -f > "$tar.tar.lzma" && \ |
64 | | echo "../$tar.tar.lzma created." |
65 | | |
66 | | 7 Compress the current subdirectory (tar.lz) |
67 | | Pwd=`basename %d /` |
68 | | echo -n "Name of the compressed file (without extension) [$Pwd]: " |
69 | | read tar |
70 | | if [ "$tar"x = x ]; then tar="$Pwd"; fi |
71 | | cd .. && \ |
72 | | tar cf - "$Pwd" | lzip -f > "$tar.tar.lz" && \ |
73 | | echo "../$tar.tar.lz created." |
74 | | |
75 | | 8 Compress the current subdirectory (tar.xz) |
| 57 | 6 Compress the current subdirectory (tar.xz) |