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 / vc

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do you use Mapping Parameter and mapping variable?

1287


Can we create two repositories on same database instance in oracle?

612


Explain what are the different types of transformation available in informatica. And what are the mostly used ones among them?

606


r u done any partitions in ur project?

1407


What are the types of data warehouses?

944






Mine is Insurance Domain, So interviewer asked about terms like underwriting, disbursement amt, Reinsurance

1590


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

604


Can u generate reports in Informatica?

658


How to go to the older version for a mapping?

604


How can we improve session performance in aggregator transformation?

674


Explain the different kinds of facts.

566


explan ur project architecture?

1597


What is exclusive and normal mode for repository services?

713


How union transformation is used?

593


What is the session task and command task?

599