Question in unix os

Assignment Help Basic Computer Science
Reference no: EM136901

What if we need the portion from a text based on some keyword.
For eg. My file is like below,
------------------------------------------------
Order=[<order id="EO427849240">
1
2
3
4
5
Order=[<order id="EO427849241">
6
7
8
9
10
Order=[<order id="EO427849242">
11
12
13
14
15
Order=[<order id="EO427849243">
------------------------------------------------
Now i want the middle portion where i found EO427849242. I tried with sed but it does not give me the desired result.
I used the command,
sed -n '/Sandy Order/,/Sandy Order/p' Filename
and it gives me the all the portion in the file from Start=Sandy Order and end=Sandy Order
When I use the below command,
sed -n '/Sandy Order/,/Sandy Order/p' Filename | grep EO427849242
it only gave me the line 
Order=[<order id="EO427849242">
But what i need is 
-----
Order=[<order id="EO427849242">
11
12
13
14
15
-----
Can anyone please help me on this. It will be really helpful.

Reference no: EM136901

Questions Cloud

How various sperm cells would be expected : Swelling of the abdomen and legs due to edema is characteristic of starving children with kwashiorkor, protein-deficiency disorder. What is the relationship between this symptom and procedure of capillary exchange.
What is function of the vitamin in hematopoiesis : Why could prokaryotes quickly reinfect a patient if they are not wiped out? How may this result in the evolution of drug-resistant pathogens.
Assume that alternative alleles of single gene are involved : At the present we know that over 99 percent of the time, glucose occurs in the closed-ring form. What likely difference between these forms would give chemists a clue that the open-chain form was not present.
Describe and explain the main epilepsy topic : Explain how one of these main concepts is connected to your own personal observations. Clearly describe two methodological problems associated with the way Scientists study the topic.
Question in unix os : What if we need the portion from a text based on some keyword. Now i want the middle portion where i found EO427849242. I tried with sed but it does not give me the desired result.
Selling monopoly charges : Prices the selling monopoly charges for TV sets in periods 1 and 2.
Changes in demand affect prices : How large is the bias in the CPI due to not immediately incorporating new goods.
Major driver of economic growth in australia : Which is a tax on profits generated from mining of iron ore and coal.
Joint venture : Suppose that firm A and firm B can form a joint venture to pursue either or both of their R&D programs.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Evaluate the cost of materials

Evaluate the cost of materials

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Describe what is downward solution

The Conflict Resolution Phase can be thought of as control strategy, describe four types of such strategy Describe what is downward solution

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare business income statement for the period

With growing importance of computerised accounting systems, which inventory system (perpetual or periodic) has become more popular?  Explain why

  Show with diagrams how the median filters work

Explain why in some image processing scenarios, filters are used instead of point operations on pixel values Show with diagrams how the Median Filters work

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Examine about direct cash-payment method

Examine about Direct Cash-Payment method

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  The authentication process in a synchronous token system

Describe how the Kerberos authentication process work and outline the main components within the Kerberos environment, their respective functions and the level of security provided by Kerberos. Draw a diagram supporting your explanation Explain..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd