Ack grep.

Perl tool `ack` - the better grep.

Because the OP didn't provide it, I went out and found a link.
http://search.cpan.org/dist/ack/ack

Similar Messages

  • Finding Both ( and ) open and closed as the same time in grep

    Hi,
    I have a character style I want to apply to all the () in my document.
    In the GREP area, the drop down shows I can select one at a time and make the change.
    Is there a way to find both at the same time regardless of how many characters are in between?
    thanks
    babs

    Hi Rodney,
    I have an update here.
    Ok-so yesterday everything worked great...
    Today, it's acting very weird.
    I am using the same find and change GREP I used yesterday: To find the (or)
    And i am changing it to the character style I made with the baseline shift change. It worked perfectly yesterday, and now it's deleting the ()????
    I thought maybe the document might be corrupt, so I made a new one and tried it and this was even worse. I had a bunch of () in the file and asked it to find in the GREP  [\(\)] and change to a character style I made and it told me it could not find any?
    Even if I chose, document, all documents selection, story, nothing worked???
    I trashed all the InDesign Prefs but still no go.
    Is this GREP stuff really that buggy or do you think it is something with my software and machine? If you have never seen anything like this, then I will throw up a new forum and try to find out if outers ahve problesm with this stuff.
    thanks!!
    babs

  • Grep command in Solaris 10

    Hi all,
    I linux i can use this command
    grep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    How can i do this in Solaris 10?
    Thanks in advance!
    Dan.

    This work perfectly!
    -bash-3.00$ /usr/sfw/bin/ggrep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    Thank you all!
    Dân
    Edited by: Dan on Jan 9, 2012 10:36 PM

  • Pass system ack of JDBC adapter to ERP in IDoc - XI - JDBC scenario

    Dear all,
    i have an IDoc -> XI -> JDBC scenario (without using ccBPM). In the standard way the ERP system, sending the IDoc waits for an application acknowledgement. However the JDBC adapter is only capeable to send system acknowledgements.
    Is there a way to pass these acknowledgements to the IDoc status record?
    In help.sap.com (http://help.sap.com/saphelp_nwpi71/helpdata/en/ab/bdb13b00ae793be10000000a11402f/frameset.htm) under "IDoc Processing with the IDoc Adapter " there is a table that maps XI system/applic acknowledgement to IDoc status. So in my opinion the status record of my IDoc should at least chenge to the corresponding status for the system ack.
    Can anyone tell, if this is really working? What if I deactivate the acknowledgement request in the NOALE programm?
    In any case, can I achieve to transfer the system ack to the IDoc status without using a ccBPM?
    Many thanks and best regards
    Florian

    Is there a way to pass these acknowledgements to the IDoc status record?
    Without BPM, No.
    So in my opinion the status record of my IDoc should at least chenge to the corresponding status for the system ack.
    The ack referred here is related to idoc status whether it is properly reached till XI or not and not related to the JDBC ack.
    What if I deactivate the acknowledgement request in the NOALE programm?
    Then u won't have any ALEAUD message at sender R3.
    In any case, can I achieve to transfer the system ack to the IDoc status without using a ccBPM?
    No
    Regards,
    Prateek

  • GRC: Negative ack; PI: End tag 'enviNFe' does not match the start tag 'NFe'

    Bom dia SAP Boosters!
    Como muita gente estou aqui brigando com o GRC NFe. Esse forum tem resolvido meus problemas, até agora. Por isso inicio um novo tópico pois estou tendo o seguite problema que nao encontrei resposta:
    O grc e o pi estao em servidores separados. Do lado do grc, na sxmb_moni mostra para a interface BATCH_nfeRecepcaoLote_OB erro no acknowledgement status. abrindo o item error do ack msg id aparece:
    <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">NEGATIVE_ACKNOWLEDGEMENT</SAP:Code>
      <SAP:P1></SAP:P1>
      <SAP:P2></SAP:P2>
      <SAP:P3></SAP:P3>
      <SAP:P4></SAP:P4>
      <SAP:AdditionalText></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
      <SAP:Stack>Negative acknowledgment triggered by a process</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    No lado do PI, ao consultar esta interface e abrir o payload do item Request Message Mapping, aparece a mensagem de erro: End tag 'n0:enviNFe' does not match the start tag 'NFe'. e todo o xml fica em uma linha só.
    Voltei entao no xml do sender e de fato encontrei a tag NFe, onde deveria constar os dados das notas fiscais, sendo aberta mas nao sendo fechada, e sem dados, desse jeito.
    <?xml version="1.0" encoding="utf-8" ?>
    - <n0:nfeRecepcaoLote2 xmlns:n0="http://sap.com/xi/NFE/006">
      <n0:cUF>35</n0:cUF>
      <n0:tpEmis>1</n0:tpEmis>
      <n0:tpAmb>2</n0:tpAmb>
    - <n0:nfeDadosMsg>
    - <n0:enviNFe versao="2.00" xmlns:n0="http://www.portalfiscal.inf.br/nfe">
      <n0:idLote>000000000000025</n0:idLote>
      <n0:NFe asx:root="" xmlns:asx="http://www.sap.com/abapxml"></n0:NFe>
      </n0:enviNFe>
      </n0:nfeDadosMsg>
      </n0:nfeRecepcaoLote2>
    Alguém já viu esse bug? estou com grc 10 e SP 08 e das notas que sairam depois nenhuma fala disso.
    Obrigado.

    Fiz um teste que parou de dar erro de acknowledgement e chegou a enviar o lote para a sefaz, que retornou erro de schema porque o xml continua vazio:
    Na interface determination gerada quando criei o cenário NFE_BATCH_WebAS_Outbound_Batch, a que contém a interface BATCH_nfeRecepcaoLote_OB, tirei o operation mapping BATCH_nfeRecepcaoLote2_TO_nfeRecepcaoLote2. Embora não seja mais retornada a mensagem de erro na tag, o payload continua no mesmo formato postado acima. Entao coloquei de volta.
    Bem, pesquisando vi que a função que gera o xml é a  /XNFE/006_SIGN_NFE_OUT. As notas aparecem como assinadas no monitor do grc, mas vou ter que ver entao como esta ocorrendo a geraçao do xml por esta funçao, certo?

  • Cross reference + GREP + excluding text

    I would like to know if anyone has a solution to the following problem.
    I have a paragraph style which I use to label tables within my document. In the paragraph style I have set up numbering (under Bullets and Numbering) so that each heading appears as "Table 1.1 School Children in HK" or "Table 1.2 School Children in China" the code I have entered in the 'number' field of the paragraph style appears below:
    Table ^H.^#^/
    I have inserted the word 'Table' prior to the rest of the code so that the label is correct.
    When I create cross references I select 'Cross Reference Format' to be 'paragraph number' the problem is, however,  that the word 'Table' is picked up as part of the 'paragraph number' because of the settings in the Paragraph Style. The end result looking like this:
    The result is fine if you are cross referencing a single table per sentence, however, if you are dealing with multiple tables in plural this is a problem. What I would like to achieve is this:
    Does anyone know if there is a way to achieve this by editing the 'Cross Reference Format' so that the word 'Table' disappears when the cross reference is generated? Perhaps with GREP?
    I would really appreciate your help.

    Hi Tom,
    Im following standard English conventions (UK, if you will)  and the format at the moment is a wee bit clunky when you have to write something like 'Table 7.1, Table 7.2, Table 7.3, Table 7.4 and Table 7.5.....' as will be the case later in the document. The other arrangment of 'Tables 7.1, 7.2, 7.3, 7.4 and 7.5.....' is much shorter and easier to read - brevity is essential in this document because of limited word count.

  • More help with GREP needed

    I have been attempting to create some nested styles.
    So far, I am getting the hang of it.
    I have created a grep style that will make all text after the word "NOTE: " into italic. Also, I have grep style that makes all text that is "FIGURE +\d+\d" into bold text.
    The problem I have is that if the word "FIGURE " etc. is in the italicized note text, then it will not become bold.
    For example: "Operate the switch to begin the process (FIGURE 3-3). Make sure guards are closed (refer to FIGURE 3-1)."
    That works fine, and "FIGURE " is bold. However, when I change the sentence by adding "NOTE: Make sure guards... " it all becomes italic, and I loose the bold on "FIGURE 3-1"
    So, is there a way to augment my italic grep with some kind of inclusion... as if I were saying "if "FIGURE +\d+\d" make that is bold italic"
    sorry for the long-winded attempt to describe what I want to do.
    Thanks in advance for help.
    RPP

    RPP,
    The trouble is that in GREP style you can find text but not formatting, so you can't say something like "find FIGURE only when it's italic". In the Find/Change dialog you can, but in GREP styles you can't.
    You also can't say "look for FIGURE if it's preceded by NOTE: and any characters in between". Unfortunately, lookbehind can't cope with variable-length text. So if you always have "NOTE: Refer to FIGURE ...", then you can use lookbehind and you set-up would be this:
    apply italic to FIGURE [-\d]+
    apply bold to NOTE:.+
    apply bold-italic to (?<=NOTE: Refer to )FIGURE [-\d]+
    The first parenthetical is a lookbehind: in this case, FIGURE looks behind, meaning you find FIGURE only when it's preceded by "Note: Refer to", which is not matched itself. So bold italics would be applied only to FIGURE [-\d]+, and only when preceded by ...
    But you're not likely to have such fixed text. When you have just a few alternatives, you can list them as alternatives, so if you always have "Note: Refer to " or "NOTE: See " you could salvage your set-up, but with more than let's say three alternatives it gets messy.
    (?<=NOTE:.+? )FIGURE [-\d]+ , which you would hope would match any text from NOTE: to FIGURE, doesn't work as a lookbehind.
    Peter

  • ID-CS4 -JS - - Can't find using Grep options - Reg.

    Dear All,
      Here I have a doubt about the "Find / Change Grep" in InDesign CS4.
    I can find the "Force Line Break" using the Grep options : ([a-zA-Z]*)-\\n([a-zA-Z]*)]
    Some time this Grep is working, some time this is not working ...
    I don't know what I made the mistakes. Please let me know any one can suggest and modify the below coding.
    I supposed to close and re-open the InDesign CS4 and ExtendScript tool, then First time this Grep is working fine...
    So I confused this. Please any one can give me a solutions.
    //================= Coding ==================//
       var myDoc=  app.activeDocument;
           app.findChangeGrepOptions.includeFootnotes = false;
           app.findChangeGrepOptions.includeHiddenLayers = false;
           app.findChangeGrepOptions.includeLockedLayersForFind = false;
           app.findChangeGrepOptions.includeLockedStoriesForFind = false;
           app.findChangeGrepOptions.includeMasterPages = false;
           app.findGrepPreferences.findWhat = "([a-zA-Z]*)-\\n([a-zA-Z]*)";
             mySearch = app.findGrep();
             for(var myForce =0; myForce<mySearch.length; myForce++)
              app.select(mySearch[myForce]);
              var mySel = app.selection[0];
               myConts = mySel.contents;
              app.select(mySearch[myForce]);
              var mySel = app.selection[0];
               myConts = mySel.contents;
              app.findGrepPreferences = NothingEnum.nothing;
               app.changeGrepPreferences = NothingEnum.nothing;
    //=============== End of the Coding ========================//
    Please any one can kindly help me....
    Thanks & Regards
    T.R.Harihara SudhaN

    Dear Vaasu Devi,
      Many thanks for your reply...
    I found, where I mistaken....
    Here My Correct Code :
    //================= Coding ==================//
       var myDoc=  app.activeDocument;
           app.findChangeGrepOptions.includeFootnotes = false;
           app.findChangeGrepOptions.includeHiddenLayers = false;
           app.findChangeGrepOptions.includeLockedLayersForFind = false;
           app.findChangeGrepOptions.includeLockedStoriesForFind = false;
           app.findChangeGrepOptions.includeMasterPages = false;
           app.findGrepPreferences.findWhat = "([a-zA-Z]*)-\\n([a-zA-Z]*)";
             mySearch = app.findGrep();
             for(var myForce =0; myForce<mySearch.length; myForce++)
                        app.select(mySearch[myForce]);
                         myConts = mySearch[myForce].contents;
                         $.writeln(myConts);
              app.findGrepPreferences = NothingEnum.nothing;
               app.changeGrepPreferences = NothingEnum.nothing;
    //=============== End of the Coding ========================//
    app.select() is working fine, meanwhile, I get the selection of the contents. That time only its throw the Error message. So I used to divert, app.select and Select Value of Contents to pass the "myConts" variable then I will do the other funtions.... Now My this time I'm not getting the Errors...
    Thanks Once again
    Regards
    T.R.Harihara SudhaN

  • Trying to use grep from within java,using exec command!

    Hi all!
    I would like to run a grep function on some status file, and get a particular line from it, and then pipe this line to another file.
    Then perfom a grep on the new file to check how many of the lines above are present in that file, and then write this value to a new file.
    The final file with a numerical value in it, i will read from within java,as one reads normal files!
    I can run simple commands using exec, but am kinda stuck with regards to the above!
    Maybe i should just do all the above from a script file and then run the script file from exec. However, i dont want to do that, because it kinda makes the system dependent,..what if i move to a new machine, and forget to install the script, then my program wont work!
    Any advise?
    Thanks
    Regards

    With a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
    Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive.

  • Ack from SAP R/3 to file..

    Hi,
    We have a requirement in our scenario like this where in we are posting the PLM data from Windchill to SAP R/3,
    From Windchill we are getting the data as an XML where we can read through file adapter and in the SAP side we are using RFC adapter to connect with SAP R/3, After updating the data in the R/3 we need some acknowledgment from the SAP R/3 system whether succesffully uploaded the data or not.. is it necessary to use BPM if so how can we get ACK the BPM's basically sends response when it delievers the data from XI server.
    Can any one suggest the solution..
    regards
    Kishore

    Hey,
    You don't need to use a BPM for that..
    Do this way..
    Create two synchronous message interfaces...
    OUTbound---give file as your output message and input message as your acknowledgement structure...
    INbound---you don't need to do because your RFC acts at interface level..
    In interface mapping use these too...and map between file structure and RFC request(sources)...and map between RFC response(have some data for ack purpose) and RFC response(target structures).
    Configure file adapter at sender side and RFCa dapter at receiver end.
    Hope this will do.
    Thanks,
    Vijaya.

  • Doubt in GREP

    Hi ALL,
    Doubt in GREP:
    Working in Glossary, my requirement is upto first colon ":" i want to apply characterStyle after that give "Em Space".
    How can we find first colon or commo etc.
    I am using Zero or One Time

    1. I have never, ever, used Data Merge. Can you supply sample files and a written explanation of each of the eight items in the Data Merge menu? I can't promise I'll ever need it, but thanks anyway.
    2. Please, please, do not use the word "doubt" Ever Again. I seriously doubt you know how to use it correctly. Use "question" if you are in doubt about when to use it correctly. Thank you. (Should you doubt my knowledge of English, then you are correct -- I'm not a native speaker either. But as you can see practise obviosly makes perfect.)
    3. InDesign Help has all the proper help on GREP. It's right here: http://help.adobe.com/en_US/InDesign/6.0/WS1952D538-1335-4b1d-BA5E-FA5A176FDC9Fa.html and I got that by typing in "GREP" in the Help search box.
    4. Why would anyone need a file and a list of examples telling how to use these particular parts of GREP? It's rather the other way around: if you need something that cannot be done with a regular search, read the help on GREP (see above) and check if the functions and constraints for each of these match your requirements. If so, there are usage samples on the Help page; and if not, it probably cannot be done, or you are looking at it the wrong way.

  • I am not able to generate PO Ack 855 for a cancelled line of a already booked sales order.

    PO Ack 855 is getting generated when we are booking a fresh order. But issue arises when we are cancelling any line from the existing sales order, i mean then only system is not generating 855.
    Thanks,
    Sunil

    Rajesh,
    Put a breakpoint and try to debug the report step by step.
    You will findout the reason very easily.
    Whenever you have a select and are trying to append into an internal table, keep checking your internal table if it is been populated with the correct records.
    This way, you will findout the cause and can correct is accordingly.
    Thanks,
    Suresh Ganti

  • Report S_ALR_87012993 issue: GREP blocks

    Hello experts,
    When I run report S_ALR_87012993 I get the following error:
    "Internal error: More then 999 GREP blocks were requested"
    Message no. GR215
    Diagnosis
    An internal error occurred in the Report Writer.
    When running the program, you selected the option to store your results permanently.  However, when the selected data was stored in blocks in the GREP file, the maximum number of blocks was exceeded.
    System Response
    The selection program was terminated.
    Procedure
    Inform your system administrator.
    You may have to increase the block size for the GREP blocks.
    Is there anyone who knows what the problem is and how it can be solved?

    The solution that worked for me was:
    1.-Implement note 64537.  Import transport request of the change to your productive client.
    2.-Regenerate report group using transaction code GR55 using report group 6O00.
    3.-Run report S_ALR_87012993 again and it will work.
    Best regards!
    Alex.

  • Issue while handling the functional ack(CONTRL) through B2B

    Hi,
    My requirement is to handle the incoming CONTRL message through B2B and send the data to SOA/AIA application and update the CONTRL data in table. For that i have done the following settings in oracle B2B.
    Functional Ack handled automatically : false
    Functional Ack internal properties : false
    Notify Inbound Receipt Acks     : false
    Notify Inbound Functional Acks : false
    I am able to update the data successfully in the table for the successful scenarios. But if the transaction is failed in SOA/AIA application due to some error then it is creating 2 entries of MSG_ERROR in reports tab in B2B where as it is creating only one entry for MSG_COMPLETE state.
    Please guide me if i am missing anything here. I am getting below 2 errors for 2 separate entries at the same time.
    1)
    Error Code     B2B-52325
    Error Description     Machine Info: (elb1cn14.statoilfuelretail.com) Description: Error in the SOA Composite {0}
    Error Level     ERROR_LEVEL_COLLABORATION
    Error Severity     ERROR
    Error Text     Error in the SOA Composite
    2)
    Error Code     B2B-52325
    Error Description     
    Error Level     
    Error Severity     
    Error Text     Error -: B2B-52325: Error in the SOA Composite {0}
    Edited by: 901994 on Aug 22, 2012 3:36 AM

    But if the transaction is failed in SOA/AIA application due to some error then it is creating 2 entries of MSG_ERROR in reports tab in B2B where as it is creating only one entry for MSG_COMPLETE state.Are you really sure that you are seeing three report entries for SAME transaction?
    I guess B2B listening channel is trying to retry the same file in case of error.App message delivery is not retried in B2B rather failed messages are delivered to the IP_IN_QUEUE. Please enable the logging for B2B engine in TRACE 32 mode and run a test to reproduce the behaviour. Post the log here or mail across to my id (in my profile).
    Regards,
    Anuj

  • How to reject ACK/NACK from other Send Ports to Orchestration

    Hi Everyone,
    I have a below scenario, Please let me your ideas how can we avoid ACK from other send ports (If there is any failures), in my current scenario getting issues or conflicts because of this
    AckRequired.
    Key points in my scenarios
    SendPort_A is pointing to SAP
    SendPort_B is pointing to SQL
    Flow
    Receive MessageA and Transform to MessageB format, send MessageB to SendPort_A which directly bind to orchestration with transmitted property enabled.
    SendPort_B subscribes the same message, output of map with message type as filter condition (we are not expecting any Acknowledge from sendPort_B, because it’s a generic send port for some scenario).
    Problem
    When I see the context properties both send ports has AckRequired
    Property to true (so getting ACK/NACK from both send ports).
    I want acknowledgement only form SendPort_A which is bind to orchestration with transmitted property enabled, but not from the SendPort_B which subscribes just with message type.
    I have tried the below points but no luck
    Created custom pipeline with custom pipeline component to set / overwrite
    AckRequired Property to false (Pipeline component is working fine, but nothing is overwriting in context, getting acknowledge back to orchestration for any failure in SendPort_B)
    #region IComponentUI
    public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
    pInMsg.Context.Write("AckRequired", "http://schemas.microsoft.com/BizTalk/2003/system-properties", false);
    return pInMsg;
    #endregion
    Below images gives some info on the same scenario.
    Appreciate your suggestions.
    Thanks, SMS Vikas K

    Hi Vikas,
    Let me know if I understood correctly.
    SendPort_B subscribes the same message, output of map with message type as filter condition (we are not expecting any Acknowledge from sendPort_B, because it’s a generic send port for some scenario).
    Problem
    You have a send port B which is subscribing to the same message using the message type.
    You can set additional filters to ignore Acknowledgement-
    Ex- Mgtype= "" AND
    AckRequired!=True OR
    AckRequired!=False 
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

Maybe you are looking for