In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / ganeswar bojanapu
Here is simply command
sed -n '50~50'p filename
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do I read a .sh file?
How will you copy a file from one machine to other?
How do I open the shell prompt?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
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.
What is the meaning of $1 in shell script?
How does shell scripting work?
How do I run a .sh file?
How to print all the arguments provided to the script?
What are the 3 standard streams in linux?
What does $0 mean in shell script?
How do you find out What is your shell?
What happens when you type ls?
What does the sh command do?
What is echo in shell?