Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

i have source like X1 10 X2 20 X1 30 X2 40 i want target as X1 X2 10 20 30 40 in informatica

2 Answers   HP,


Which transformation can be created only as reusable transformation but not as non-reusable transformation?

1 Answers   Informatica,


Could any one to tell How to use the Oracle Analytic functions in Informatica?

1 Answers  


Do you have knowledge in ralph kimball methodology

1 Answers  


Design a mapping to load the cumulative sum of salaries of employees into target table?

0 Answers   Informatica,


How to update a particular record in target with out running whole workflow?

0 Answers  


if i have a file having record sal=10000,and when use router with two groups having condition sal>5000 in one group,sal>7000 in other group.and if two groups connected to two targets.in which target sal=10000 will go?

9 Answers   BirlaSoft, Genpact, L&T, Syntel,


What is the Hierarchy of DWH?

1 Answers  


every DWH must have time dimension so now what is the use of the time dimension how we can calculate sales for one month,half-yr'ly,and year'ly?how we are doing this using time dimension.

1 Answers   IBM,


i have two flat files.. containing same type of data i want to load it to dwh..how many source qualifires i need

7 Answers   Deloitte,


How are parameters defined in informatica?

3 Answers   HP, TCS,


I have a scenario with router transformation. but i dont want to capture records from default group. how can we achieve this.

3 Answers   Amdocs,


Categories