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
Write the syntax for "if" conditionals in linux?
Why is used in shell scripting?
Why should we use shell scripts?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is web script?
What is shell chemistry?
What is bash shell command?
What is difference between shell and bash scripting?
What is the difference between break and continue commands?
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); }
What is a shell script? Can you name some of its advantages?
What are the 3 standard streams in linux?
What is shell environment?
How can you find out how long the system has been running?