Guest_imported
New member
- Jan 1, 1970
- 0
hiiiiiiii
i want to write a shell script which can take a unique
number as input and select some text from the abcfile
specific to that number.
The abcfle has the following syntax:
-----------------------------------------------
Unique id = x
comments: the following is the........
.......some text........
---------------------------------------------
some suff here
-------------------------------------
unique id = y
comments: the following has.......
......some text here................
-------------------------------------
some stuff here
And the whole pattern repeated in the whole file
with unique id =x and respective text may repeat anywhere in file.
i just want to get matter related to input number.
pls help me i used awk /sed but no output
Regds
Anannd
i want to write a shell script which can take a unique
number as input and select some text from the abcfile
specific to that number.
The abcfle has the following syntax:
-----------------------------------------------
Unique id = x
comments: the following is the........
.......some text........
---------------------------------------------
some suff here
-------------------------------------
unique id = y
comments: the following has.......
......some text here................
-------------------------------------
some stuff here
And the whole pattern repeated in the whole file
with unique id =x and respective text may repeat anywhere in file.
i just want to get matter related to input number.
pls help me i used awk /sed but no output
Regds
Anannd