?? paragraph-space.sh
字號:
#!/bin/bash# paragraph-space.sh# Inserts a blank line between paragraphs of a single-spaced text file.# Usage: $0 <FILENAMEMINLEN=45 # May need to change this value.# Assume lines shorter than $MINLEN characters#+ terminate a paragraph.while read line # For as many lines as the input file has...do echo "$line" # Output the line itself. len=${#line} if [ "$len" -lt "$MINLEN" ] then echo # Add a blank line after short line. fi doneexit 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -