1
0
Fork 0
This commit is contained in:
Vladimír Dudr 2022-11-11 20:08:22 +01:00
parent 40cbf9ec95
commit 8939f253ee

View file

@ -63,6 +63,15 @@ shell_patterns=0
tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \ tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \
echo "../$tar.tar.xz created." echo "../$tar.tar.xz created."
7 Compress the current subdirectory (tar.zstd)
Pwd=`basename %d /`
echo -n "Name of the compressed file (without extension) [$Pwd]: "
read tar
if [ "$tar"x = x ]; then tar="$Pwd"; fi
cd .. && \
tar cf - "$Pwd" | zstd -f > "$tar.tar.zstd" && \
echo "../$tar.tar.xz created."
= f \.c$ & t r = f \.c$ & t r
+ f \.c$ & t r & ! t t + f \.c$ & t r & ! t t
c Compile and link current .c file c Compile and link current .c file