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

Hard drive on a traditional tower computer

How do you replace a hard drive on a traditional tower computer? If someone could walk me through the steps to install and setup, that would be very helpful! Thank you in a

Write a method that takes an integer value

(Reversing Digits) Write a method that takes an integer value and returns the number with its digits reversed. For example, given the number 7631, the method should return 1

Isomerism in alkanes and alkenes

a) Discuss isomerism in alkanes and alkenes b) What happens when the following is carried out (give reactions) I. Acetic acid is reacted with sodium carbonate. The sodium salt

Single phase core type transformer

The emf per turn of 3300 /395, 50Hz single phase core type transformer is 7.5V, if the maximum flux density is 1 Tesla, then find a suitable number of primary and secondary

Who swallowed a cat, imagine that to swallow a cat.

There was an old woman who swallowed a fly. I don't know why she swallowed that fly, Perhaps she'll die. There was an old woman who swallowed a spider, That wriggled and wig

How an object would be instantiated using both types

explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions an

Acme films produces advertisements for cable television

Acme Films produces advertisements for cable television stations. They have two locations in a large metropolitan area. Building 1 contains the administrative, sales, mar

Country efficiency improves based on theory

Answer ONE of the following. Must be between 350-600 words. Must have intro, middle, and conclusion. 1. In a short essay, discuss the theory of absolute advantage and the re

Reviews

Write a Review

 
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