In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / abhishek
awk 'NR % 2 == 0 {print}' abc.txt
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is an inode block?
How do I edit a .sh file?
What is shell variable?
What shell is bin sh?
How to print pid of the current shell?
Which shell is the best?
how to get part of string variable with echo command only?
State the advantages of shell scripting?
Why is a script important?
What are the different types of shell scripting?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is basename in shell script?
What is shell company all about?
What is the conditional statement in shell scripting?
Is shell scripting a programming language?