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
What is web script?
Is bash an operating system?
What is a beat in a script?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What can you do with powershell?
How do I debug a shell script?
What is the use of .sh file?
What is the default shell of solaris?
What does it mean to debug a script?
What is bash shell command?
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.
How to calculate the number of passed arguments?
determine the output of the following command: echo ${new:-variable}
What exactly is a shell?
What are the different commands available to check the disk usage?