How to parse this text?

effect = {{p_physical_defence;{armor_light};11.1;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};11.8;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};12.5;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};14;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}     
effect = {{p_physical_defence;{armor_light};14.8;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};15.6;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};17.3;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};18.1;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};19;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}     
effect = {{p_physical_defence;{armor_light};20.8;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};21.7;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};22.6;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};24.5;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};25.5;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_light};26.4;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
effect = {{p_physical_defence;{armor_heavy};14.8;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};15.6;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};16.5;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};18.3;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};19.2;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};20.2;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};22.1;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};23.1;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};24.1;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};26.2;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};27.3;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};28.4;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};30.6;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};31.8;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
effect = {{p_physical_defence;{armor_heavy};33;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per}}
effect = {{i_p_attack_over_hit;123};{p_block_act}}
effect = {{i_p_attack_over_hit;131};{p_block_act}}

Yeesh.
Throw some code at it and hope it works.

Similar Messages

  • How to parse this kind of XML documents and store in a relational tables

    Can u guys help me out ,..how to parse these kind of XML documents..like under PR there Sr,CreationDate and DoBID.. Again under Sr...there are LD, CID,TID, RID and so on.....
    so how to parse this kind of data..how to create the structure of the table....pls help me out..
    <nk8:PR>
              <nk8:Sr>
                   <nk8:LD>---------</nk8:LID>
                   <nk8:CID>---------</nk8:CID>
                   <nk8:TID>---------</nk8:TID>
                   <nk8:RID>---------</nk8:RID>
                   <nk8:CC>OnError</nk8:CC>
                   <nk8:AID>---------</nk8:AID>
              </nk8:Sr>
              <nk8:CreationDateTime>2002-07-01</nk8:CreationDateTime>
              <nk8:DOBID>---------</nk8:DOBID>
         </nk8:PR>
         <ssm:ER>
              <ssm:PN>---------</ssm:PN>
              <ssm:SN>---------</ssm:SN>
              <ssm:SCt>---------</ssm:SC>
              <ssm:IA>
                   <ssm:NT>---------</ssm:NT>
                   <nk8:LID>---------</nk8:LID>
                   <nk8:CID>---------</nk8:CID>
                   <ssm:AN>---------</ssm:AN>
              </ssm:A>
         </ssm:ER>
         </nk8:PR>

    First, your XML document is not well formatted. Once you're done with that you can extract the values and store it in a table column.
    sql> WITH xml_table AS
      2  (SELECT XMLTYPE(
      3  '
      4  <nk8:PR xmlns:nk8="http://www.w3.org">
      5  <nk8:Sr>
      6  <nk8:LID>LID Value</nk8:LID>
      7  <nk8:CID>CID Value</nk8:CID>
      8  <nk8:TID>TID Value</nk8:TID>
      9  <nk8:RID>RID Value</nk8:RID>
    10  <nk8:CC>OnError</nk8:CC>
    11  <nk8:AID>---------</nk8:AID>
    12  </nk8:Sr>
    13  </nk8:PR>') XMLCOL FROM DUAL)
    14  SELECT extractvalue(t.column_value,'//nk8:LID','xmlns:nk8="http://www.w3.org"') "LID",
    15   extractvalue(t.column_value,'//nk8:CID','xmlns:nk8="http://www.w3.org"') "CID",
    16   extractvalue(t.column_value,'//nk8:RID','xmlns:nk8="http://www.w3.org"') "RID",
    17  extractvalue(t.column_value,'//nk8:CC','xmlns:nk8="http://www.w3.org"') "CC"
    18  FROM xml_table, table(xmlsequence(extract(xmlcol,'/nk8:PR/nk8:Sr','xmlns:nk8="http://www.w3.org"'))) t;
    LID        CID        RID        CC
    LID Value  CID Value  RID Value  OnError

  • How to parse this specific text

    i am stucked in this crictical problem and i don't know how to cater this. I sometimes receive this String ����&#9658;&#9787;&#9786; and sometimes these are non US-ASCII characters. These ����&#9658;&#9787;&#9786; characters are replaced by ????? and is represented as it is. I sometime receive this character �� too. These characters are in ANSI list but i want to receive only US-ASCII. Please help me out that how to identify these characters in the string.

    They are undoubtedly hex. Download a hex editor and view the values to see if they make sense. If you simply want to strip out the alphanumeric characters, write a simple RegEx expression.
    - Saish

  • How to parse this textfile

    I have a plan textfiel that i'm able to read but i can't parse the date and numbers in the text file.
    text content: [ 2007.10.19 11:53:42 ] (test) <color=0xffbbbb00>Your item, costs 598.0 euro.
    i suppose i can use substring/tokenizer but my knowledge in the tokenizer is limited.
    Does anyone know how to parse the date and costs so i can show the total costs for an item?

    mkoryak wrote:
    import java.util.regex.*;
    holy regex, batman! I definitely have to devote more time to regex. My mere mortal solution to some of the extractions went along these lines:
        private Color getColor(String text)
            Color c = null;
            String[] strArr = text.split("[<>]"); 
            // the forum mangles this  :( 
            // it should have angle brackets inside of square brackets. 
            String colorStr = strArr[1];
            colorStr = colorStr.substring(colorStr.indexOf("=") + 3);
            int[] colorInts = new int[4];
            for (int i = 0; i < colorInts.length; i++)
                String colorSubStr = colorStr.substring(2 * i, 2 * i + 2);
                colorInts[i] = Integer.parseInt(colorSubStr, 16);
            c = new Color(colorInts[0], colorInts[1], colorInts[2], colorInts[3]);
            return c;
        private Date getDate(String text)
            Date d = null;
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss");
            String[] dateStrArr = text.split("[\\[\\]]");
            String dateStr = dateStrArr[1].trim();
            try
                    d = sdf.parse(dateStr);
            catch (ParseException e)
                e.printStackTrace();
            return d;
        }I will definitely study your code mkoryak, thanks.
    Edited by: petes1234 on Oct 24, 2007 10:09 AM

  • Can Someone Tell Me How to Do This Text Effect?

    Ok so this video has this text effect that I spent 2 days looking on how to do it! http://www.youtube.com/watch?v=LATGUNnlUr8
    The text effect starts at 0:47-0:49
    I tried looking for plugins and etc but I just can't find any that do this or something similar to it! It would mean a lot if you could tell me how to do it ^^

    The text itself simply appears character by character.  The "Typewriter" animation preset will do the job.  Additionally, there's a spray of particles accompanying the text.  You could generate these with the CC Particl World plugin.  You'll need to match the floor of the effect to the floor of your shot/background.  Animate the location of the particle generator to match the locatio of the appearing text.  Finally, apply some Glow.

  • "This file was created by Oracle Reports. View this document in Page Layout mode" , how to avoid this text

    we print some RTF Files , we dont want to  print to paper  this text "This file was created by Oracle Reports. View this document in Page Layout mode"
    How to able do it.
    Tanks for reply.

    we print some RTF Files , we dont want to  print to paper  this text "This file was created by Oracle Reports. View this document in Page Layout mode"
    How to able do it.
    Tanks for reply.

  • How to parse a text on a transition with OCL? is it possible ?

    Hi Everyone,
    I was just wondering if it is possible to put constraints between a transition on a state machine and a variable/attribute in a class diagram ? for example, to make sure if the user writes [X++] as a guard for a transition in state machine, the X attribute exists in the corresponding class diagram.
    Is it even possible with OCL? I think maybe it should be coded to parse the text... Any idea will be appreciated
    Thanks,
    Parsa

    Hi
    For OMG OCL, yes, since the capability is implied by the UML
    specification. However there are gaping chasms between the UML and OCL
    specifications, so any useable implementation relies on vendor intuition.
    For the new pivot-based Eclipse OCL, quite possibly. The UML support is
    primarily for Class Diagram elements, but is kind of extensible in so
    far as for unsupported UML elements, 'self' is aligned to the nearest
    containing Class. This works for statemachines, and could work for
    transitions. Activity diagrams are known to not work.
    Regards
    Ed Willink
    On 29/06/2015 18:02, Parsa Pourali wrote:
    > Hi Everyone,
    >
    > I was just wondering if it is possible to put constraints between a
    > transition on a state machine and a variable/attribute in a class
    > diagram ? for example, to make sure if the user writes [X++] as a
    > guard for a transition in state machine, the X attribute exists in the
    > corresponding class diagram.
    >
    > Is it even possible with OCL? I think maybe it should be coded to
    > parse the text... Any idea will be appreciated :)
    >
    > Thanks,
    > Parsa

  • How can  parse this xml tag " Cell ID="0" Type="String" Afghanistan cell "

    Hi,
    I have to parse this type of xml file.
    so how can i parse this type of xml file like
    <Row ID="1">
    <Cell ID="0" Type="String" >Afghanistan</Cell>
    <Cell ID="1" Type="Number" >93</Cell>
    <Cell ID="2" Type="Number" >0</Cell>
    <Cell ID="3" Type="Number" >1</Cell>
    </Row>

    You haven't given us enough information. Is this for iPhone or Mac OS X? What language are you using? etc.

  • I need to get the complete element including tag. How to parse this xml?

    I am sure there should be some solution to this. I have XML file like this
    <test>
    <data value="123" color="RED">
    <type>single</type>
    </data>
    <data value="13323" color="BLUE">
    <type>double</type>
    </data>
    </test>
    I need to parse this XML and get the data element(s). The problem is that I need to get the complete data element include tags like
    "<data value="123" color="RED"><type>single</type></data>". I need to parse the complete XML file and get every data element including tag and send it to another upstream process.
    Any solution to this will be appreciated. I am little familiar with SAX. Is there any solution around using xerces SAX parser.
    Other solution is also appreciated.
    Thanks

        DocumentBuilder builder = factory.newDocumentBuilder();
        document = builder.parse(srcFile);
        NodeList list = document.getElementsByTagName("data");
        Node node = list.item(0); // Loop this
        TransformerFactory tFactory = TransformerFactory.newInstance();
        Transformer transformer = tFactory.newTransformer();
        DOMSource source = new DOMSource(node);
        StreamResult result = new StreamResult(outputstream);
        transformer.transform(source, result);
    Using XSLT will be lot easier.No it won't. Extending DefaultHandler is easy.Do you really think so?
    Hardly 10-15 lines.

  • How to sort this text file ?

    hi all
    i have a text file that contains archlinux package information int he following formate:
    File:alpine-2.00-1-i686.pkg.tar.gz     3623 KB     09/05/2008     10:53:00 PM
    File:alsa-lib-1.0.18-1-i686.pkg.tar.gz     474 KB     11/08/2008     04:46:00 PM
    File:alsa-oss-1.0.17-1-i686.pkg.tar.gz     50 KB     09/28/2008     04:25:00 PM
    File:alsa-utils-1.0.18-1-i686.pkg.tar.gz     1047 KB     11/08/2008     04:46:00 PM
    what is the easiest way to sort the order according to different criteria such as file size, creation time, name etc
    i'm thinking of using a database software such as sqlite.
    if this is the correct direction to go, can anyone show me some hints on how i should go about to accomplish this task ?
    thanks in advance

    after some digging
    it seems awk can do the trick
    i found some code snippets
    i'll try it later
    but i'm still curious about doing this using sqlite and the SQL language
    like can i create a database from a formated text file? etc
    so anyone has some comments on this, you are still welcome
    Last edited by elflord (2008-11-15 17:56:18)

  • How to parse this xml

    Hi Guys
    I have the following xml file.
    <scms:TokenDescription xmlns:scms="http://www./schema/2003/07/Passage/scms.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="SID33322800" ATR="asdfafasdfdafdasfsda" FormatVersion="1.0">
      <Token SerialNumber="123456789" SmartChipSN="3232323232">
        <KeySetVersion>99</KeySetVersion>
        <SecurityDomainAID>fdfasfsadfsdaf</SecurityDomainAID>
        <AuthenticationKey>fdasfdasfdsafsda</AuthenticationKey>
        <MACKey>fdasfdsafdsaf</MACKey>
        <KeyEncryptionKey>asdfasdfasdfsdafa</KeyEncryptionKey>
        <DefaultPUK>fdsafsdafsdfdsafasd</DefaultPUK>
      </Token>
    </scms:TokenDescription>I have managed to read the xml fine and bind it manuall to an object as follows:
                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                Document doc = docBuilder.parse (new File("xml.xml"));
                        NodeList keySetVersion = firstPersonElement.getElementsByTagName("KeySetVersion");
                        Element firstNameElement = (Element)keySetVersion.item(0);
                        NodeList textFNList = firstNameElement.getChildNodes();
                        System.out.println("keySetVersion : " +
                               ((Node)textFNList.item(0)).getNodeValue().trim());My Question is can anyone tell me how i can read this part of the xml from this document the serial number and smartChipSN
    <Token SerialNumber="123456789" SmartChipSN="3232323232">

    Try this code,
    Nodelist nList = doc.getElementByTagName("Token ") ;
    Element node = (Element)nList.item(0);
    To read the values of "SerialNumber" and "SmartChipSN", you can use getAttribute method.
    String serailNo = node.getAttribute("SerialNumber");
    String chipSN = node.getAttribute("SmartChipSN");

  • Any suggestions for how to make this text look amazing?

    Hey guys,
    I'm a newbie at photoshop and I've recently started learning to run this blog that I create called Cultural Facts of the Day.
    I am developing a graphic style for some of the stories that I post and I'm looking for advice on how to better some of the images on text. I have this one photo I am working on now. I'm using a Futura and gothic text, but I'm looking for inspiration or a tutorial on how to optimize text lay out on an image like this. I just want to put it out there that I am willing to pay for Skype tutorials if anyone wants to help me out!
    This is what I'm working with and what I have so far:
    My inspiration so far has been this Time article:

    If the only thing you need to do efficiently is appending an object to the end of file, then quick & dirty solution follows
    static void addObject(Object o,File f)throws IOException{
    RandomAccessFile raf=new RandomAccessFile(f);
    raf.seek(f.length());
    ObjectOutputStream out=new ObjectOutputStream(new RAFOutputStream(raf));
    out.write(obj);
    out.close();
    static Vector readAll(File f)throws IOException{
    ObjectInputStream in=new ObjectInputStream(new FileInputStream(f));
    Vector v=new Vector();
    Object obj;
    while((obj=in.readObject())!=null){
    v.addElement(obj);
    return v;
    class RAFOutputStream extends OutputStream{
    private RandomAccessFile raf;
    RAFOutputStream(RandomAccessFile raf){
    this.raf=raf;
    public void write(int b)throws IOException{
    raf.write(b);
    public void close()throws IOException{
    raf.close();
    }

  • How to parse this?????

    i have the model of following structure html file i have to parse the values of <BR> tags how should i do this since all of them are enclosed within <Font> tag
    <BODY><FONT SIZE=-1
    <BR>"10100521"
    <BR>"11723003"
    <BR>"9011461"
    <BR>"8158892"
    <BR>"1603335"
    <BR>"2129978"
    </FONT></BODY>
    there is a < BR > tag before starting of the numbers i dont know why it is not displayed here
    null

    A "<br>" is non-XHTML, though, so that won't work.
    You're probably better off learning to use regular expressions - once you know how to use them, this sort of thing is pretty straightforward. Google for it and you'll find endless resources to help you.

  • How to parse a text file and produce a dynamic shell script for linking?

    I have some mapping files, one example is like this one;
    $ cat CON_xfrm_contract_to_20080302.map
    (object mfile_c_type
    (path "file:OBSOLETE")
    (fs "file://amanos/s01/abinitio/data/prod/mfs/mfs_16way")
    (local_paths 16
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"))In this file's content I have some exracted text files with same names under different folders;
    $ ls -lt /s01/abinitio/data/prod/mfs/parts/mfs_16way_*/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat   [
    -rw-rw-rw-   1 ab_live  abinitio 438652105 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438490410 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438219252 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438521432 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438488130 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438249547 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438312177 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 439074566 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438722261 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438742477 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438517268 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438645835 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438334994 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438470743 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438095853 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438434204 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.datI need a shell script which will produce a shell script from the content of the mapping file so that I can be able to symbolicly link these files with different names and under the same folder, like;
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_016.CON_xfrm_contract_to_20080302.datI am a newbie for shell scripting, I tried several awk and sed operations but couldn't get close to this output :(
    If you guide me I will be so glad, thank you.
    ps: amanos is the name of this server.

    this is thepoint that I am stuck, I can not add the destination sym.link name to the end of each line;
    $ grep "  \"file://amanos" CON_xfrm_contract_to_20080302.map | cut -c17- | sed  's/"//;s/)//g' | sed 's/\/s01/ln -s \/s01/g'
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    $ /)//g' | sed 's/\/s01/ln -s \/s01/g' | awk -F\/ '{print $8"."$14}'                                                       <
    mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    mfs_16way_002.CON_xfrm_contract_to_20080302.dat
    mfs_16way_003.CON_xfrm_contract_to_20080302.dat
    mfs_16way_004.CON_xfrm_contract_to_20080302.dat
    mfs_16way_005.CON_xfrm_contract_to_20080302.dat
    mfs_16way_006.CON_xfrm_contract_to_20080302.dat
    mfs_16way_007.CON_xfrm_contract_to_20080302.dat
    mfs_16way_008.CON_xfrm_contract_to_20080302.dat
    mfs_16way_009.CON_xfrm_contract_to_20080302.dat
    mfs_16way_010.CON_xfrm_contract_to_20080302.dat
    mfs_16way_011.CON_xfrm_contract_to_20080302.dat
    mfs_16way_012.CON_xfrm_contract_to_20080302.dat
    mfs_16way_013.CON_xfrm_contract_to_20080302.dat
    mfs_16way_014.CON_xfrm_contract_to_20080302.dat
    mfs_16way_015.CON_xfrm_contract_to_20080302.dat
    mfs_16way_016.CON_xfrm_contract_to_20080302.datMessage was edited by:
    antu
    Message was edited by:
    antu

  • (ask) how to parse this?

    Hello guys, I wonder if you can help me with this:
    For example this string : '(1+4)/7'
    How do I break down that string so I can found out the result of that statement?
    Any input would be appreciated.
    Thanks.

    SQL> set serveroutput on
    SQL> declare
      2   a number;
      3   str varchar2(20) := '(3/4)*7';
      4  begin
      5   execute immediate 'select '||str||' from dual' into a;
      6   dbms_output.put_line(a);
      7  end;
      8  /
    5.25                                                                           
    PL/SQL procedure successfully completed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • MacBook Pro keeps crashing...I'm new to Mac please help?!?!

    On several occassions everything I had saved on my MacBook stopped working. All the icons I had once placed on my dock disappeared and my settings were changed. Some of the programs I had previously downloaded were no longer available and I lost all

  • Cs5 exporting prem pro project to mpeg 2 but there is no audio what the?mac

    HI I am pulling my hair out i want to export a prem pro project to mpeg2 because it needs to play and windows but there is no audio I have tried all setting can some one please help me is there a plug in or mpeg sound card

  • Web pages won't adjust automatically to the width of my browser.

    MS IE will automatically adjust the web page to the size of the browser. But Firefox doesn't do this, so I have to scroll left and right. Can this be fixed? == This happened == Every time Firefox opened

  • Recover after zpool add -f ? Is it possible?

    Hello. Recently I've upgraded one of my machines to OpenSolaris 2009.06; the box has a few HDD: 1) main with OS, etc and 2) archive and ... After installing I created users, environment, etc on HDD(1), and then wanted to mount the existing ZFS for th

  • Hyperlink cut after the first line

    Hello, we use adobe acrobat pro with adobe pdf printer. when we print a word document with hyperlinks over several lines with the pdf printer and open it after printing then the hyperlink will show's in the pdf document but the hyperlink will cut aft