Improve documentation and examples [ci skip]
This commit is contained in:
parent
a30d3775c4
commit
026bb52469
15 changed files with 340 additions and 306 deletions
|
|
@ -3,6 +3,8 @@
|
|||
# This script removes consecutive empty lines in nginx.conf
|
||||
# Using sed is more simple than using a go regex
|
||||
|
||||
# first sed removes empty lines
|
||||
# second sed command replaces the empty lines
|
||||
sed -e 's/\r//g' | sed -e 's/^ *$/\'$'\n/g' | sed -e '/^$/{N;/^\n$/d;}'
|
||||
# Sed commands:
|
||||
# 1. remove the return carrier character/s
|
||||
# 2. remove empty lines
|
||||
# 3. replace multiple empty lines
|
||||
sed -e 's/\r//g' | sed -e 's/^ *$/\'$'\n/g' | sed -e '/^$/{N;/^\n$/D;}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue