![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to extract a piece of information from a huge file | Marcor | Shell Programming and Scripting | 2 | 03-13-2008 04:33 PM |
| Extract data from file | getdpg | Shell Programming and Scripting | 20 | 08-03-2006 04:54 AM |
| search and grab data from a huge file | ting123 | UNIX for Dummies Questions & Answers | 1 | 06-06-2006 10:41 PM |
| How to extract data from a text file | negixx | Shell Programming and Scripting | 1 | 07-19-2005 10:30 PM |
| extract data from file | apalex | Shell Programming and Scripting | 2 | 04-27-2002 02:24 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to extract data from a huge file?
Hi,
I have a huge file of bibliographic records in some standard format.I need a script to do some repeatable task as follows: 1. Needs to create folders as the strings starts with "item_*" from the input file 2. Create a file "contents" in each folders having "license.txt(tab \t)bundle:LICENSE" as string in it 3. Create a file "dublin_core.xml" in their respective folder "item_*" extracting the text from the input file under its "item_*" string. The would be extracted text starts with the string <dublin_core schema="dc"> and ends with </dublin_core> Following are the sample records in the file: item_3908 <dublin_core schema="dc"> <dcvalue element="contributor" qualifier="author">Fernandes, A.A.</dcvalue> <dcvalue element="contributor" qualifier="author">Sarma, Y.V.B.</dcvalue> <dcvalue element="title" qualifier="none">Directional spectrum of ocean waves</dcvalue> <dcvalue element="date" qualifier="issued">2000</dcvalue> <dcvalue element="publisher" qualifier="none">GET PUB</dcvalue> <dcvalue element="identifier" qualifier="citation">Ocean Eng., Vol.27; 345-363p.</dcvalue> </dublin_core> /eprints/Ocean_Eng_27_345.pdf item_3911 <dublin_core schema="dc"> <dcvalue element="contributor" qualifier="author">Phatarpekar, P.V.</dcvalue> <dcvalue element="title" qualifier="none">A comparative study on growth performance</dcvalue> <dcvalue element="identifier" qualifier="citation">Aquaculture, Vol.181; 141-155p.</dcvalue> <dcvalue element="type" qualifier="none">Journal Article</dcvalue> <dcvalue element="language" qualifier="iso">en</dcvalue> <dcvalue element="subject" qualifier="none">polyculture</dcvalue> </dublin_core> /eprints/Aquaculture_181_141.pdf item_3921 <dublin_core schema="dc"> <dcvalue element="contributor" qualifier="author">Rao, B.R.</dcvalue> <dcvalue element="contributor" qualifier="author">Veerayya, M.</dcvalue> <dcvalue element="title" qualifier="none">Influence of marginal highs on the accumulation</dcvalue> <dcvalue element="description" qualifier="abstract">Twenty five surficial sediment samples were</dcvalue> </dublin_core> /eprints/Deep-Sea_Res_(II)_47_303.pdf Thanks & Regards |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|