100 SED Commands

sed (stream editor) is a Unix utility that parses and transforms text, using a simple, compact programming language.
From pement.org
————————————————————————-
USEFUL ONE-LINE SCRIPTS FOR sed (Unix stream editor)

FILE SPACING:

# double space a file
sed G

# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'

# triple space a file
sed 'G;G'

# undo double-spacing (assumes even-numbered lines are always blank)
sed 'n;d'

# insert a blank line above every line which matches “regex”
sed '/regex/{x;p;x;}'

# insert a blank line below every line which matches “regex”
sed '/regex/G'

# insert a blank line above and below every line which matches “regex”
sed '/regex/{x;p;x;G;}'

(more…)

Continue Reading100 SED Commands

CloudFlare Plugin install on cpanel

cloudflare

The CloudFlare cPanel plugin makes it easy to integrate into your hosting control panel. It takes less than 5 minutes to install on a test server and then the service is available to your end customers with two clicks.

Before proceed to install cloudflare plugin, you should get HOST KEY from cloudflare partners 

https://www.cloudflare.com/certified-partners

(more…)

Continue Reading
Close Panel