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

Explain what transformation and how many are there in informatica?

490


Slowly changing dimensions, types and where will you use them

1278


What do mean by local and global repository?

707


I have a flat file, want to reverse the contents of the flat file

698


Difference between Data and Index Caches?

662






Clarify the utilization of aggregator cache record?

580


What is a predefined event?

662


How to implement security measures using repository manager?

608


tell me 5 session failure in real time how can you solve that in your project?

1634


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

714


What is a shortcut and copy in Informatica and how two are different with each other?

688


How we can create indexes after completing the load process?

616


what are the fact table & dimensional table in pharmaceutical and hospotal related products???

1701


Whats there in global repository

1272


Explain the code page compatibility?

644