# Search in file and display

**URL:** <https://community.unix.com/t/search-in-file-and-display/255276>\
**Category:** Shell Programming and Scripting\
**Created:** [December 7, 2009, 12:15am UTC](https://community.unix.com/t/search-in-file-and-display/255276 "2009-12-07T00:15:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaydeep\_sadaria](https://community.unix.com/letter_avatar/jaydeep_sadaria/32/6_22734026db12803ebb3e059622ac3534.png) [@jaydeep\_sadaria](https://community.unix.com/u/jaydeep_sadaria)\
**Post date:** [December 7, 2009, 12:15am UTC](https://community.unix.com/t/search-in-file-and-display/255276/1 "2009-12-07T00:15:35Z")

</div>

Dear All

I had below mention requirement. Kindly sugguest me possible ways.

Thanks

Regards  
Jaydeep

IN PUT FILE:

CELL BROADCAST SHORT MESSAGE SERVICE  
MESSAGE DATA

ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES  
50 1000 0 13 MML 1 1

TEXT PAGE  
\*999\*1# SONGS4U@30/M- 1

ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES  
50 315 0 1 MML 1 2

TEXT PAGE  
\*999\*1# SONGS4U@30/M- 1

SARKHEJ CHOKWDI-A 2

Output:

ID CODE GS TEXT  
50 1000 0 \*999_1# SONGS4U@30/M-  
50 315 0 \*999_1# SONGS4U@30/M- SARKHEJ CHOKWDI-A

---

<div class="post-metadata">

**Author:** ![tene](https://community.unix.com/letter_avatar/tene/32/6_22734026db12803ebb3e059622ac3534.png) [@tene](https://community.unix.com/u/tene)\
**Post date:** [December 7, 2009, 12:52am UTC](https://community.unix.com/t/search-in-file-and-display/255276/2 "2009-12-07T00:52:46Z")

</div>

Dear

Did you forget your own post?

> **[Grep from file](https://www.unix.com/shell-programming-and-scripting/125390-grep-file.html)**
>
> Dear All I had below mention requirement. Kindly sugguest me possible ways. Thanks Regards Jaydeep IN PUT FILE: CELL BROADCAST SHORT MESSAGE SERVICE MESSAGE DATA ID CODE GS UPDATE MODE LANG MCO MCL NU | The UNIX and Linux Forums

---

<div class="post-metadata">

**Author:** ![jaydeep\_sadaria](https://community.unix.com/letter_avatar/jaydeep_sadaria/32/6_22734026db12803ebb3e059622ac3534.png) [@jaydeep\_sadaria](https://community.unix.com/u/jaydeep_sadaria)\
**Post date:** [December 7, 2009, 2:01am UTC](https://community.unix.com/t/search-in-file-and-display/255276/3 "2009-12-07T02:01:50Z")

</div>

no i dont forget it..but still i had not find the right way....

Suggest if u had any method..

regards  
jaydeep

---

<div class="post-metadata">

**Author:** ![pludi](https://community.unix.com/user_avatar/community.unix.com/pludi/32/1278_2.png) [@pludi](https://community.unix.com/u/pludi)\
**Post date:** [December 7, 2009, 2:09am UTC](https://community.unix.com/t/search-in-file-and-display/255276/4 "2009-12-07T02:09:13Z")

</div>

If none of the solutions presented suits you, be more specific about what you need, but don't start a new thread if the situation hasn't changed.

Closing thread, continued [here](http://www.unix.com/shell-programming-scripting/125390-grep-file.html)
