ad2c

来自「功能丰富的串口通讯程序」· 代码 · 共 49 行

TXT
49 行
字号
#!/bin/sh##	ad2c : Convert app-defaults file to C strings decls.##	George Ferguson, ferguson@cs.rcohester.edu, 12 Nov 1990.#	19 Mar 1991: gf#		Made it self-contained.#	6 Jan 1992: mycroft@gnu.ai.mit.edu (Charles Hannum)#		Removed use of "-n" and ":read" label since Gnu and#		IBM sed print pattern space on "n" command. Still works#		with Sun sed, of course.#	7 Jan 1992: matthew@sunpix.East.Sun.COM (Matthew Stier)#		Escape quotes after escaping backslashes.#	8 Jul 1992: Version 1.6#sed '# remove comments/^!/d# remove blanks/^$/d# escape backslashs/\\/\\\\/g# except the line continuation oness/\\$//g# escape quotess/"/\\"/g# add leading quotes/^/"/#: test/\\$/b slashs/$/",/pd#: slashn# just like "read" only does not add leading quote/^!/d/^$/ds/"/\\"/gs/\\\\/\\/gs/\\n/\\\\n/gs/\\t/\\\\t/gs/\\f/\\\\f/gs/\\b/\\\\b/gb test' "$@"

⌨️ 快捷键说明

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