kantiword.sh

来自「A free MS Word reader for Linux and RISC」· Shell 代码 · 共 43 行

SH
43
字号
#!/bin/sh## Script to make drag and drop in KDE possible#set -x#if [ $# -lt 2 ]then	exit 0fi# Determine the temp directoryif [ -d "$TMPDIR" ] && [ -w "$TMPDIR" ]then	tmp_dir=$TMPDIRelif [ -d "$TEMP" ] && [ -w "$TEMP" ]then	tmp_dir=$TEMPelse	tmp_dir="/tmp"fi                        out_file=$tmp_dir"/antiword.$$.ps"err_file=$tmp_dir"/antiword.$$.err"# Determine the paper sizepaper_size=$1shift# Make the PostScript fileantiword -p $paper_size -i 0 "$@" 2>$err_file >$out_fileif [ $? -ne 0 ]then	rm -f $out_file	exit 1fi# Show the PostScript filegv $out_file -nocentre -media $paper_size# Clean uprm -f $out_file $err_fileexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?