2 thoughts on “Remove Empty Lines From A File”

  1. Only for some definitions of “empty”. You could improve it. `sed ‘/^[t|s]*$/d’ badcommand.sh’ ` This also removes lines with just spaces and/or tabs/

  2. Only for some definitions of “empty”. You could improve it.

    sed ‘/^[t|s]*$/d’ badcommand.sh

    This also removes lines with just spaces and/or tabs/.

Comments are closed.