There are 100 lines in a file. How to print line number 31-50 and 81-90 in unix with a single command.

Answer Posted / xx

awk '(NR>31 && NR<50) || (NR>81 && NR <90) filename.txt

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some examples of informatica etl programs?

544


If I have 10 flat files with same name abc.txt files with different timestamps as source I need to load them in tgt table oracle. in between job execution fails and rows are not loaded into tgt. how can I make them load in that target even if my job fails?

1039


What is aggregator transformation in informatica?

553


I have 100 records in source table, but I want to load 1, 5,10,15,20…..100 into target table. How can I do this? Explain in detailed mapping flow.

1116


What are the issues you have faced in your project? How did you overcome those issues?

1927






What are the prerequisite tasks to achieve the session partition?

722


What are the new features of informatica 9.x developer?

542


What is a code page?

729


How to create or implement slowly changing dimension (SCD) Type 2 Effective Date mapping in informatica/Flagging mapping in informatica/visioning mapping in informatica?

720


What are session parameters ? How do you set them?

1393


How we can create indexes after completing the loan process?

742


Design time, run time. If you don't create parameter what will happen

1435


Which is the t/r that builts only single cache memory?

726


What differs when we choose the sorted input for aggregator transformation?

578


What is dynamic cache?

621