How would you print just the 25th line in a file using
smallest shell script?

Answer Posted / swaroopa

sed -n 25p <filename>

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are filters explain sort with all the options available?

947


How do I edit a .sh file?

637


What are zombie processes?

581


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

1716


What is the use of "$?" Sign in shell script?

626






Why do we write bin bash in shell scripts?

550


What are scripts in psychology?

607


How do you know which shell I am using?

603


Is cmd a shell?

606


How do I run a shell script in powershell?

560


How to check if the previous command was run successfully?

599


What happens when you type ls?

579


How do I open the shell prompt?

584


What will happen to my current process when I execute a command using exec?

545


Write the syntax for "if" conditionals in linux?

601