remove blank lines

to delete empty lines:
from line 633 to the end of the document:


the $ represents the end of the file, the ^$  represents a blank line, and the d - delete

do delete all empty lines, globally:


and an alternate version:


If you want to delete blank lines or those that contain spaces or tabs, use: :g/^\s*$/d and an alternate version: :v/\S/d \S matches anything that is not a whitespace, and d deletes the flagged lines (all lines that have only whitespace characters or are blank).
to put lines in place of spaces: perl -pi -e 's/ /\n/g' 01_Gen-words.txt

Simply Linux: Basics  Full Size Jeep Buyer's Guide Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
Linux Tackles Microsoft
12 hour Video Course by john:
The Art of Linux System Administration
published by O'Reilly Media
Study Guide for the LPIC-2 Certification Exams
search for:
on the internet, or:
BibleTech- Bible overview

overview of mankind's history
Biblical history:
"Promises and Prophets"



"Jeep is America's
only real sports car."
-Enzo Ferrari

Diesels +

One Page Overview of Linux Commands

click for an image of the 5 essential Linux commands

An Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL
at Midway Auto on SR9 in Snohomish,
or at Northland Diesel in Bellingham, WA

SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986


MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)