linux:remove-multi-blank-lines
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | linux:remove-multi-blank-lines [2017/12/20 10:34] (current) – created percy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Remove Mutli-Blank lines ====== | ||
| + | |||
| + | When we coding and can found there has some blank lines, so we need to remove them but just keep one blank line. | ||
| + | |||
| + | So here has some solutions | ||
| + | * cat -s | ||
| + | * sed ' | ||
| + | * for i in *; do FILE=$(cat -s " | ||
| + | |||
| + | |||
| + | ===== Refer ===== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
/var/www/dokuwiki/wiki/data/pages/linux/remove-multi-blank-lines.txt · Last modified: by percy
