📄 cleanemacs.sh
字号:
#!/bin/bash## File: cleanemacs.sh## Purpose: Replace lines containing only whitespace with empty lines.# Emacs tends to make such lines, and they ruin the paragraph# feature of vi## Version: $Id: cleanemacs.sh,v 1.1 2005/07/09 19:52:54 cary Exp $#######################################################################for i in .h .cpp .cxx Makefile.am; do files=`ls *$i 2>/dev/null` if test -n "$files"; then for i in $files; do # echo Testing $i haswsl=`grep '^[ \t]+*$' $i` if test -n "$haswsl"; then echo File $i has whitespace-only lines! mv $i $i.orig sed 's/^[ \t]+*$//' <$i.orig >$i fi done fidone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -