I have file that looks like This row contains charactersthis row to*-=?/this             is the lat row of the fileHow can I only print only rows that contains some characters -- aka all but empty rows?I have tried cat file | grep '[a-zA-Z0-9,\.,?{}()]'but it didn't work. How can I achieve this?
check if row contains characters
shell;regular expression