📄 nsxlview
字号:
#!/bin/bashfile=$1if [ "$file"xx == xx ]then echo "Usage: $0 file.doc" exit 1fisource=$1#Generate a unique html filename (/tmp/scriptname.pidnum.html)# should use mkstemp, this is wholly bogus.com=basename $0tmp=/tmp/${com}:t.$$html=${tmp}.htmlxlhtml $source > $htmlif [ ! $? ]then echo "xlhtml failed" exit 4fiif [ ! -s $html ]then echo "$0: failed to generate HTML file" exit 1fi#File exists and is of length > 0, so open itnsopen $html#I do NOT remove the html file so that the user can click#on the "Back" button without generating a "file not found"#error - but uncomment the next line if you want it.if [ "$tmp"zz == zz ];then echo "Aargh: \$tmp was null."else rm ${tmp}*fiexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -