Log in
Entries RSS
Comments RSS
~ Collaboration Of Code and Processes
Search for:
0
votes
0
comments
2,761
views
Oneliners: Removing blank lines from a unix file
0.00 / 5
5
1 / 5
2 / 5
3 / 5
4 / 5
5 / 5
0
votes,
0.00
avg. rating (
0
% score)
Many of times I receive comma delimited files an they have blank lines after each record. I would like to use sed or awk. I need to remove all the blank lines from an input file and write into an output file.
awk
blank lines
blank-line
delete lines
grep
Oneliners
sed
unix
Post Tags
Apache
awk
bash
dns
grep
java
linux
Nagios
Netbackup
perl
python
raid5
Remote Exploits
shell
shell-script
Solaris
stderr
stdout
syslog
unix
Post Categories
AIX
(1)
Amazon
(2)
Android Studio
(2)
Apache
(3)
AWS
(2)
CentOS
(1)
Cloud Services
(1)
Cpanel
(2)
Django
(2)
DNS
(2)
EMC
(1)
Java
(2)
Javascript
(2)
jQuery
(2)
Linux
(29)
Mac
(2)
Mac OS X
(1)
Nagios
(1)
Netbackup
(3)
Networking
(1)
Perl
(6)
PHP
(1)
Programming
(8)
Python
(3)
Ruby
(2)
Scripting
(19)
Security
(5)
Shell
(14)
Solaris
(4)
SSL
(1)
Storage
(4)
Ubuntu
(3)
Uncategorized
(3)
Unix
(15)
Veritas
(2)
VMware ESXi
(1)