How to delete empty lines using sed command under Linux / UNIX last updated November 22, 2019 in Categories BASH Shell, CentOS, Debian / Ubuntu, FreeBSD, Linux, RedHat and Friends, Suse, UNIXI need to delete all empty lines but could not figure out sed command for the same. How do I delete all empty lines with sed under Linux or Unix-like systems?
Bash Script Replace Empty Spaces String last updated June 6, 2011 in Categories AIX, BASH Shell, CentOS, Debian / Ubuntu, FreeBSD, Linux, RedHat and Friends, Suse, Ubuntu Linux, UNIXHow do I remove all spaces from string using shell scripts? I’ve var=”This is a test”, and I’d like to remove all spaces.