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

What is target designer and target load order?

0 Answers  


Without using Lookup & Sequence Generator, How to generate Sequence?

5 Answers   CTS,


How will you convert rows into columns or columns into rows

1 Answers  


What is metadata reporter?

1 Answers   Informatica,


why we r using presql&postsql in source qualifier?

1 Answers   HP,


Can you use the maping parameters or variables created in one maping into any other reusable transformation?

1 Answers  


Write the different tools in the workflow manager?

0 Answers  


WHAT IS UPDATE OVERRIDE . DIFFERENCE BETWEEN SQL OVERRIDE AND UPDATE OVERRIDE ?

7 Answers   Target,


WHAT IS THE DIFFERENCE BETWEEN .NET AND INFORMATICA?

1 Answers  


How/where can i install Informatica software with oracle or teradata as database

0 Answers  


i have source like this ID 1 2 3 4 sal 1000 2000 3000 4000 and how to load target like this o_sal 1000 3000 6000 10000 can you plz give a sol using informatica

5 Answers   Cap Gemini,


How can you change from reusable session into non-reusable session.

5 Answers   Cap Gemini,


Categories