1998-02-27 07:54:42 +03:00
|
|
|
|
shell_patterns=0
|
|
|
|
|
+ ! t t
|
|
|
|
|
@ Do something on the current file
|
|
|
|
|
CMD=%{Enter command}
|
2010-02-01 19:40:36 +03:00
|
|
|
|
$CMD %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
@ Do something on the tagged files
|
2002-08-19 02:53:07 +04:00
|
|
|
|
set %t; CMD=%{Enter command}
|
1998-02-27 07:54:42 +03:00
|
|
|
|
while [ -n "$1" ]; do
|
2010-02-01 19:40:36 +03:00
|
|
|
|
$CMD "$1"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
shift
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 Edit a bug report and send it to root
|
2010-01-22 18:41:02 +03:00
|
|
|
|
I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1
|
|
|
|
|
${EDITOR-vi} "$I"
|
2004-08-17 12:31:16 +04:00
|
|
|
|
test -r $I && mail root < $I
|
2010-01-22 18:41:02 +03:00
|
|
|
|
rm -f "$I"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
|
=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r
|
|
|
|
|
1 Display the file with roff -man
|
|
|
|
|
nroff -man %f | less
|
|
|
|
|
|
|
|
|
|
2 Call the info hypertext browser
|
|
|
|
|
info
|
|
|
|
|
|
|
|
|
|
= t d
|
2002-09-12 23:21:13 +04:00
|
|
|
|
3 Compress the current subdirectory (tar.gz)
|
2005-09-06 10:01:07 +04:00
|
|
|
|
Pwd=`basename %d /`
|
2002-09-12 23:21:13 +04:00
|
|
|
|
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
1998-02-27 07:54:42 +03:00
|
|
|
|
read tar
|
2002-09-12 23:21:13 +04:00
|
|
|
|
if [ "$tar"x = x ]; then tar="$Pwd"; fi
|
|
|
|
|
cd .. && \
|
|
|
|
|
tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \
|
|
|
|
|
echo "../$tar.tar.gz created."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
2002-09-12 23:21:13 +04:00
|
|
|
|
4 Compress the current subdirectory (tar.bz2)
|
1999-02-09 23:29:56 +03:00
|
|
|
|
Pwd=`basename %d /`
|
2002-09-12 23:21:13 +04:00
|
|
|
|
echo -n "Name of the compressed file (without extension) [$Pwd]: "
|
1999-02-09 23:29:56 +03:00
|
|
|
|
read tar
|
2002-09-12 23:21:13 +04:00
|
|
|
|
if [ "$tar"x = x ]; then tar="$Pwd"; fi
|
|
|
|
|
cd .. && \
|
2002-11-14 13:50:23 +03:00
|
|
|
|
tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \
|
2002-09-12 23:21:13 +04:00
|
|
|
|
echo "../$tar.tar.bz2 created."
|
1999-02-09 23:29:56 +03:00
|
|
|
|
|
2012-01-13 12:14:16 +04:00
|
|
|
|
5 Compress the current subdirectory (tar.7z)
|
2009-07-31 11:49:28 +04:00
|
|
|
|
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" | 7za a -si "$tar.tar.7z" && \
|
|
|
|
|
echo "../$tar.tar.7z created."
|
|
|
|
|
|
2012-01-13 12:14:16 +04:00
|
|
|
|
6 Compress the current subdirectory (tar.xz)
|
2009-07-31 11:49:28 +04:00
|
|
|
|
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" | xz -f > "$tar.tar.xz" && \
|
|
|
|
|
echo "../$tar.tar.xz created."
|
2010-01-22 18:41:02 +03:00
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
|
= f \.c$ & t r
|
|
|
|
|
+ f \.c$ & t r & ! t t
|
2011-10-14 09:38:28 +04:00
|
|
|
|
с Compile and link current .c file
|
1998-02-27 07:54:42 +03:00
|
|
|
|
make `basename %f .c` 2>/dev/null || cc -O -o `basename %f .c` %f
|
|
|
|
|
|
|
|
|
|
+ t r & ! t t
|
|
|
|
|
a Append file to opposite
|
2010-01-22 18:41:02 +03:00
|
|
|
|
cat %f >> %D/%f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
A Append files to opposite files
|
2002-08-19 02:53:07 +04:00
|
|
|
|
set %t
|
1998-02-27 07:54:42 +03:00
|
|
|
|
while [ -n "$1" ]; do
|
2010-01-22 18:41:02 +03:00
|
|
|
|
cat "$1" >> "%D/$1"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
shift
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
+ t r & ! t t
|
|
|
|
|
d Delete file if a copy exists in the other directory.
|
|
|
|
|
if [ "%d" = "%D" ]; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "The two directories must be different."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
exit 1
|
|
|
|
|
fi
|
2010-01-22 18:41:02 +03:00
|
|
|
|
if [ -f %D/%f ]; then # if two of them, then
|
1998-02-27 07:54:42 +03:00
|
|
|
|
if cmp -s %D/%f %f; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
rm %f && echo "%f: DELETED."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
else
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "%f and %D/%f differ: NOT deleted."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
echo -n "Press RETURN "
|
|
|
|
|
read key
|
|
|
|
|
fi
|
|
|
|
|
else
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "%f: No copy in %D/%f: NOT deleted."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
D Delete tagged files if a copy exists in the other directory.
|
|
|
|
|
if [ "%d" = "%D" ]; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "The two directores must be different."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
exit 1
|
2010-01-22 18:41:02 +03:00
|
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
|
for i in %t
|
2010-01-22 18:41:02 +03:00
|
|
|
|
do
|
|
|
|
|
if [ -f "%D/$i" ]; then
|
1998-02-27 07:54:42 +03:00
|
|
|
|
SUM1="`sum $i`"
|
|
|
|
|
SUM2="`sum %D/$i`"
|
|
|
|
|
if [ "$SUM1" = "$SUM2" ]; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
rm "$i" && echo "${i}: DELETED."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
else
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "$i and %D/$i differ: NOT deleted."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
fi
|
|
|
|
|
else
|
2012-03-14 16:19:20 +04:00
|
|
|
|
echo "%i has no copy in %D: NOT deleted."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
2003-09-04 21:05:33 +04:00
|
|
|
|
m View manual page
|
|
|
|
|
MAN=%{Enter manual name}
|
|
|
|
|
%view man -P cat $MAN
|
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
|
= f \.gz$ & t r
|
|
|
|
|
+ ! t t
|
|
|
|
|
n Inspect gzip'ed newsbatch file
|
|
|
|
|
dd if=%f bs=1 skip=12|zcat|${PAGER-more}
|
|
|
|
|
# assuming the cunbatch header is 12 bytes long.
|
|
|
|
|
|
|
|
|
|
= t r &
|
|
|
|
|
+ ! t t
|
|
|
|
|
h Strip headers from current newsarticle
|
2001-10-06 12:54:05 +04:00
|
|
|
|
CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null
|
2010-01-22 18:41:02 +03:00
|
|
|
|
case "$CHECK" in
|
1998-02-27 07:54:42 +03:00
|
|
|
|
Newsgroups:|Path:)
|
2010-01-22 18:41:02 +03:00
|
|
|
|
I=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1
|
|
|
|
|
cp %f "$I" && sed '/^'"$CHECK"' /,/^$/d' "$I" > %f
|
|
|
|
|
[ "$?" = "0" ] && rm "$I"
|
|
|
|
|
echo "%f: header removed."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
;;
|
|
|
|
|
*)
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "%f is not a news article."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
H Strip headers from the marked newsarticles
|
2002-08-19 02:53:07 +04:00
|
|
|
|
set %t
|
1998-02-27 07:54:42 +03:00
|
|
|
|
while [ -n "$1" ]; do
|
2001-10-06 12:54:05 +04:00
|
|
|
|
CHECK=`awk '{print $1 ; exit}' $1` 2>/dev/null
|
2010-01-22 18:41:02 +03:00
|
|
|
|
WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1
|
|
|
|
|
case "$CHECK" in
|
1998-02-27 07:54:42 +03:00
|
|
|
|
Newsgroups:|Path:)
|
2010-01-22 18:41:02 +03:00
|
|
|
|
cp "$1" "$WFILE" && sed '/^'"$CHECK"' /,/^$/d' "$WFILE" > "$1"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
if [ "$?" = "0" ]; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
rm "$WFILE"; echo "$1 header removed. OK."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
else
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "Oops! Please check $1 against $WFILE."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
*)
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "$1 skipped: Not a news article."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
shift
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
= t r
|
|
|
|
|
+ ! t t
|
|
|
|
|
r Copy file to remote host
|
|
|
|
|
echo -n "To which host?: "
|
|
|
|
|
read Host
|
|
|
|
|
echo -n "To which directory on $Host?: "
|
|
|
|
|
read Dir
|
2010-01-22 18:41:02 +03:00
|
|
|
|
rcp -p %f "${Host}:$Dir"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
R Copy files to remote host (no error checking)
|
|
|
|
|
echo -n "Copy files to which host?: "
|
|
|
|
|
read Host
|
|
|
|
|
echo -n "To which directory on $Host? :"
|
|
|
|
|
read Dir
|
2010-01-22 18:41:02 +03:00
|
|
|
|
rcp -pr %u "${Host}:$Dir"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
|
= f \.tex$ & t r
|
|
|
|
|
+ f \.tex$ & t r & ! t t
|
|
|
|
|
t Run latex on file and show it with xdvi
|
|
|
|
|
latex %f && xdvi `basename %f .tex`.dvi
|
|
|
|
|
|
|
|
|
|
=+ f ^part | f ^Part | f uue & t r
|
|
|
|
|
+ t t
|
|
|
|
|
U Uudecode marked news articles (needs work)
|
2002-08-19 02:53:07 +04:00
|
|
|
|
set %t
|
1998-02-27 07:54:42 +03:00
|
|
|
|
(
|
|
|
|
|
while [ -n "$1" ]; do # strip headers
|
2010-01-22 18:41:02 +03:00
|
|
|
|
FIRST=`awk '{print $1 ; exit}' "$1"`
|
|
|
|
|
cat "$1" | sed '/^'"$FIRST"' /,/^$/d'; shift
|
1998-02-27 07:54:42 +03:00
|
|
|
|
done
|
|
|
|
|
) |sed '/^$/d' |sed -n '/^begin 6/,/^end$/p' | uudecode
|
|
|
|
|
if [ "$?" != "0" ]; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "Cannot decode %t."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
fi
|
2010-01-22 18:41:02 +03:00
|
|
|
|
echo "Please test the output file before deleting anything."
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
2010-02-11 14:46:46 +03:00
|
|
|
|
=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.lz$ | f \.tar\.lzma$ | f \.tar\.7z$ | f \.tar\.xz$ | f \.tar\.Z$ | f \.tar\.bz2$ & t r
|
1998-02-27 07:54:42 +03:00
|
|
|
|
x Extract the contents of a compressed tar file
|
2009-07-31 11:49:28 +04:00
|
|
|
|
unset PRG
|
|
|
|
|
case %f in
|
|
|
|
|
*.tar.bz2)
|
2010-02-11 14:46:46 +03:00
|
|
|
|
PRG="bunzip2 -c"
|
2009-07-31 11:49:28 +04:00
|
|
|
|
;;
|
|
|
|
|
*.tar.gz|*.tar.z|*.tgz|*.tpz|*.tar.Z)
|
2010-02-11 14:46:46 +03:00
|
|
|
|
PRG="gzip -dc"
|
2009-07-31 11:49:28 +04:00
|
|
|
|
;;
|
|
|
|
|
*.tar.lzma)
|
2010-02-11 14:46:46 +03:00
|
|
|
|
PRG="lzma -dc"
|
2009-07-31 11:49:28 +04:00
|
|
|
|
;;
|
|
|
|
|
*.tar.lz)
|
2010-02-11 14:46:46 +03:00
|
|
|
|
PRG="lzip -dc"
|
2009-07-31 11:49:28 +04:00
|
|
|
|
;;
|
|
|
|
|
*.tar.xz)
|
2010-02-11 14:46:46 +03:00
|
|
|
|
PRG="xz -dc"
|
2009-07-31 11:49:28 +04:00
|
|
|
|
;;
|
|
|
|
|
*.tar.7z)
|
2010-02-11 14:46:46 +03:00
|
|
|
|
PRG="7za e -so"
|
2009-07-31 11:49:28 +04:00
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
2001-10-06 12:54:05 +04:00
|
|
|
|
esac
|
2010-02-11 14:46:46 +03:00
|
|
|
|
$PRG %f | tar xvf -
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
|
= t r
|
|
|
|
|
+ ! t t
|
|
|
|
|
y Gzip or gunzip current file
|
|
|
|
|
unset DECOMP
|
2010-01-22 18:41:02 +03:00
|
|
|
|
case %f in
|
2001-10-06 12:54:05 +04:00
|
|
|
|
*.gz) DECOMP=-d;;
|
|
|
|
|
*.[zZ]) DECOMP=-d;;
|
|
|
|
|
esac
|
1998-02-27 07:54:42 +03:00
|
|
|
|
gzip $DECOMP -v %f
|
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
Y Gzip or gunzip tagged files
|
|
|
|
|
for i in %t
|
|
|
|
|
do
|
|
|
|
|
unset DECOMP
|
2010-01-22 18:41:02 +03:00
|
|
|
|
case "$i" in
|
2001-10-06 12:54:05 +04:00
|
|
|
|
*.gz) DECOMP=-d;;
|
|
|
|
|
*.[zZ]) DECOMP=-d;;
|
|
|
|
|
esac
|
2010-01-22 18:41:02 +03:00
|
|
|
|
gzip $DECOMP -v "$i"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
done
|
|
|
|
|
|
1999-02-09 23:29:56 +03:00
|
|
|
|
+ ! t t
|
|
|
|
|
b Bzip2 or bunzip2 current file
|
|
|
|
|
unset DECOMP
|
2010-01-22 18:41:02 +03:00
|
|
|
|
case %f in
|
2001-10-06 12:54:05 +04:00
|
|
|
|
*.bz2) DECOMP=-d;;
|
|
|
|
|
esac
|
1999-02-09 23:29:56 +03:00
|
|
|
|
bzip2 $DECOMP -v %f
|
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
B Bzip2 or bunzip2 tagged files
|
|
|
|
|
for i in %t
|
|
|
|
|
do
|
|
|
|
|
unset DECOMP
|
2010-01-22 18:41:02 +03:00
|
|
|
|
case "$i" in
|
2001-10-06 12:54:05 +04:00
|
|
|
|
*.bz2) DECOMP=-d;;
|
|
|
|
|
esac
|
2010-01-22 18:41:02 +03:00
|
|
|
|
bzip2 $DECOMP -v "$i"
|
1999-02-09 23:29:56 +03:00
|
|
|
|
done
|
|
|
|
|
|
2001-10-06 12:54:05 +04:00
|
|
|
|
+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t
|
1998-02-27 07:54:42 +03:00
|
|
|
|
z Extract compressed tar file to subdirectory
|
2001-10-06 12:54:05 +04:00
|
|
|
|
unset D
|
|
|
|
|
set gzip -cd
|
|
|
|
|
case %f in
|
|
|
|
|
*.tar.gz) D="`basename %f .tar.gz`";;
|
|
|
|
|
*.tgz) D="`basename %f .tgz`";;
|
|
|
|
|
*.tpz) D="`basename %f .tpz`";;
|
|
|
|
|
*.tar.Z) D="`basename %f .tar.Z`";;
|
|
|
|
|
*.tar.z) D="`basename %f .tar.z`";;
|
|
|
|
|
*.tar.bz2) D="`basename %f .tar.bz2`"; set bunzip2 -c ;;
|
|
|
|
|
*.tar.F) D="`basename %f .tar.F`"; set freeze -dc;
|
1999-02-09 23:29:56 +03:00
|
|
|
|
esac
|
2010-01-22 18:41:02 +03:00
|
|
|
|
mkdir "$D"; cd "$D" && ("$1" "$2" ../%f | tar xvf -)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
Z Extract compressed tar files to subdirectories
|
2002-08-19 02:53:07 +04:00
|
|
|
|
for i in %t
|
1998-02-27 07:54:42 +03:00
|
|
|
|
do
|
2001-10-06 12:54:05 +04:00
|
|
|
|
set gzip -dc
|
1998-02-27 07:54:42 +03:00
|
|
|
|
unset D
|
2010-01-22 18:41:02 +03:00
|
|
|
|
case "$i" in
|
2001-11-22 12:28:04 +03:00
|
|
|
|
*.tar.gz) D="`basename $i .tar.gz`";;
|
|
|
|
|
*.tgz) D="`basename $i .tgz`";;
|
|
|
|
|
*.tpz) D="`basename $i .tpz`";;
|
|
|
|
|
*.tar.Z) D="`basename $i .tar.Z`";;
|
|
|
|
|
*.tar.z) D="`basename $i .tar.z`";;
|
|
|
|
|
*.tar.F) D="`basename $i .tar.F`"; set freeze -dc;;
|
|
|
|
|
*.tar.bz2) D="`basename $i .tar.bz2`"; set bunzip2 -c;;
|
1998-02-27 07:54:42 +03:00
|
|
|
|
esac
|
2010-01-22 18:41:02 +03:00
|
|
|
|
mkdir "$D"; (cd "$D" && "$1" "$2" "../$i" | tar xvf -)
|
1999-02-09 23:29:56 +03:00
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t
|
|
|
|
|
c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2
|
2003-09-10 04:17:25 +04:00
|
|
|
|
unset D
|
|
|
|
|
unset EXT
|
2001-10-06 12:54:05 +04:00
|
|
|
|
case %f in
|
|
|
|
|
*.tgz) EXT=tgz;;
|
|
|
|
|
*.tpz) EXT=tpz;;
|
|
|
|
|
*.Z) EXT=Z;;
|
|
|
|
|
*.z) EXT=z;;
|
|
|
|
|
*.gz) EXT=gz;;
|
|
|
|
|
*.bz2) EXT=bz2;;
|
|
|
|
|
esac
|
1999-02-09 23:29:56 +03:00
|
|
|
|
case $EXT in
|
2001-10-06 12:54:05 +04:00
|
|
|
|
tgz|tpz) D="`basename %f .$EXT`.tar";;
|
|
|
|
|
gz|Z|z) D="`basename %f .$EXT`";;
|
|
|
|
|
bz2) D="`basename %f .bz2`";;
|
1999-02-09 23:29:56 +03:00
|
|
|
|
esac
|
|
|
|
|
if [ "$EXT" = "bz2" ]; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
bunzip2 -v %f ; gzip -f9 -v "$D"
|
1999-02-09 23:29:56 +03:00
|
|
|
|
else
|
2010-01-22 18:41:02 +03:00
|
|
|
|
gunzip -v %f ; bzip2 -v "$D"
|
1999-02-09 23:29:56 +03:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ t t
|
|
|
|
|
C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2
|
2002-08-19 02:53:07 +04:00
|
|
|
|
set %t
|
1999-02-09 23:29:56 +03:00
|
|
|
|
while [ -n "$1" ]
|
|
|
|
|
do
|
2003-09-10 04:17:25 +04:00
|
|
|
|
unset D
|
|
|
|
|
unset EXT
|
2010-01-22 18:41:02 +03:00
|
|
|
|
case "$1" in
|
2001-10-06 12:54:05 +04:00
|
|
|
|
*.tgz) EXT=tgz;;
|
|
|
|
|
*.tpz) EXT=tpz;;
|
|
|
|
|
*.Z) EXT=Z;;
|
|
|
|
|
*.z) EXT=z;;
|
|
|
|
|
*.gz) EXT=gz;;
|
|
|
|
|
*.bz2) EXT=bz2;;
|
|
|
|
|
esac
|
1999-02-09 23:29:56 +03:00
|
|
|
|
case $EXT in
|
|
|
|
|
tgz) D="`basename $1 .tgz`.tar";;
|
|
|
|
|
tpz) D="`basename $1 .tpz`.tar";;
|
2001-10-06 12:54:05 +04:00
|
|
|
|
gz|Z|z) D="`basename $1 .$EXT`";;
|
|
|
|
|
bz2) D="`basename $1 .bz2`";;
|
1999-02-09 23:29:56 +03:00
|
|
|
|
esac
|
|
|
|
|
if [ "$EXT" = "bz2" ]; then
|
2010-01-22 18:41:02 +03:00
|
|
|
|
bunzip2 -v "$1"
|
|
|
|
|
gzip -f9 -v "$D"
|
1999-02-09 23:29:56 +03:00
|
|
|
|
else
|
2010-01-22 18:41:02 +03:00
|
|
|
|
gunzip -v "$1"
|
|
|
|
|
bzip2 -v "$D"
|
1999-02-09 23:29:56 +03:00
|
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
|
shift
|
|
|
|
|
done
|
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
Add macro %e it is error file name
Add macro %i it is cursor column indent of spaces, only for edit
Add macro %y, it is syntax of current file in editor, only for edit
Add condition y , it is syntax pattern of current file in edit
Add macro %x it is extension of current file
Add macro %m it is current menu filename
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
(the message of David H. Martin <dmartina@usa.net>)
2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add condition (x filename) into mc.menu .
for "Open next a free console" and like.
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
src/user.c: fix segfault in chunk_alloc of glibc, when into condition
of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/edit.c:
Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
* gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
Marked block is access now from an user edit menu
Access ~/.cedit/cooledit.block for insert to cursor place from
user edit menu.
Created system cedit.menu
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editdraw.c:
Improved a status string of cool editor for best understand,
and to add char,hex view.
2000-05-04 Richard Hestilow <hestgray@ionet.net>
* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 05:18:27 +04:00
|
|
|
|
|
|
|
|
|
+ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh
|
|
|
|
|
o Open next a free console
|
|
|
|
|
open -s -- sh
|