I have data that contains several rows. Some of the rows start with values 1000.0, 500.0, 300.0 and in-between to these rows there are others rows too. What I want is:

* Print the row just after the row containing 1000.0
* followed by row CONTAINING 500.0
* followed by row CONTAINING 300.0

A typical data looks like (image attached)[enter image description here](http://i.stack.imgur.com/CNsAy.png):

```
 1000.0    -13                                                               
  969.0                  306.9  356.7  309.9
  850.0                  305.0  324.9  306.2
  700.0                  309.1  315.3  309.4
  500.0                  318.9         318.9
  400.0                  331.4         331.4
  300.0                  344.2         344.2

```

and the **desired output** is:

```
  969.0                  306.9  356.7  309.9
  500.0                  318.9         318.9
  300.0                  344.2         344.2

```

The data pattern has several lines like these.

**What I have tried is** 

```
egrep -R "`grep -A1 "1000.0" file |awk '{print $1}'`|500.0|300.0" file

```

It shows the result as: **Argument list too long** Please look into it and suggest the best solution!