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


Please Help Members By Posting Answers For Below Questions

What is web script?

586


Is bash an operating system?

548


What is a beat in a script?

549


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3608


What can you do with powershell?

613






How do I debug a shell script?

570


What is the use of .sh file?

611


What is the default shell of solaris?

579


What does it mean to debug a script?

575


What is bash shell command?

562


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2232


How to calculate the number of passed arguments?

558


determine the output of the following command: echo ${new:-variable}

550


What exactly is a shell?

608


What are the different commands available to check the disk usage?

497