chmdeco-popups.sh

来自「CHM decompiler is a program that convert」· Shell 代码 · 共 18 行

SH
18
字号
#!/bin/sh# Decompilechmdeco $1# Enter the directorycd $1{	# Print the section name	/bin/echo -en \\n[TEXT\ POPUPS]\\n;	# Find text files with the required strings in them	find -iname \*.txt | xargs grep -l '^[[:space:]]*\.topic[[:space:]]\+[_a-zA-Z0-9]\+'# Remove the ./, Convert / to \, Convert \n to \r\n and Append to the hhp.} | sed -e 's/[.]\///g' | tr / '\\' | gawk 'BEGIN { ORS = "\r\n" } { print }' >> `find \#recreated -iname \*.hhp`

⌨️ 快捷键说明

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