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

Answers were Sorted based on User's Feedback



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

Answer / vc

sed -n -e '31,50p' -e '81,90p' filename.txt

Is This Answer Correct ?    0 Yes 0 No

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

Answer / xx

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

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Informatica Interview Questions

Can informatica load heterogeneous targets from heterogeneous sources?

0 Answers  


what is constraint based loading

2 Answers   IBM,


we r using aggregator with out using groupby?

7 Answers   HSBC, Principal Finance,


Without using any transformations how u can load the data into target?

15 Answers   IBM,


what is sql override?what is the use of it?

4 Answers   Sonata,






when will we go for unconnected lookup transformation in Informatica?

6 Answers   CTS, IBM,


can we import source table without using source qualifier? if yes then how? if no then why?

2 Answers   Thomson Reuters,


Describe an informatica powercenter?

0 Answers  


How we can create indexes after completing the load process?

0 Answers  


what is the diff b/w cached and unchaed look ups

3 Answers   IBM, TCS, Wipro,


Plz..let me know differences between Informatica 7.1 and 8.1?

3 Answers  


what is the method of error handling when session is running?

1 Answers   TCS,


Categories