How would you print just the 25th line in a file using
smallest shell script?
Answer Posted / santana20142003
$ls -lrt | awk 'NR==2'
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
How to check if a directory exists?
What are zombie processes?
Explain about shebang?
How are shells born?
What is the best scripting language?
How do I run a .sh file?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
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); }
Write down the syntax for all the loops in shell scripting.
What is bash shell command?
What is shell geeksforgeeks?
Is cmd a shell?
What are the types of script?
Give some situations where typing error can destroy a program?
Is scripting and coding the same thing?