How will you list only the empty lines in a file (using
grep)?

Answer Posted / guest

grep "^$" filename

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inside a seashell?

628


What is shell geeksforgeeks?

584


Suppose you execute a command using exec, what will be the status of your current process in the shell?

568


Is shell scripting a language?

574


What is the difference between scripting and coding?

529






‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

543


How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }

1842


What is difference between bash and shell?

545


Why are there shells on the beach?

581


How do I debug a shell script?

551


write a shell script to check the failed jobs?

3948


What are the various stages of a linux process it passes through?

622


What language is shell scripting?

574


What can you do with powershell?

596


What is the first line of a shell script called?

566