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 scripts work?
write a shell script to check the failed jobs?
What is bash shell command?
What is the syntax of while loop in shell scripting?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
How do I set bash as default shell mac?
What is the use of echo in shell script?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What is the difference between break and continue commands?
What is a shell environment?
What is a boot block?
What is the way to do multilevel if-else's in shell scripting?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is a shell in operating system?
Write the syntax for "if" conditionals in linux?