From pipe to a specific argument?

We'll I just cant find the answer to this one... or if I've just missed it, I'm going to get myself a new pair of eyes. So I apologize, if this is an unnecessary post.
The problem: how do I use pipes to use the output from the pipe as a specific argument of the next program?
Say I want to use the output from the pipe as the first argument, and after that there's going to be other arguments.
An example:
DoThis ThisFile | DoThat (the output from the pipe) --with ThatFile
So that it just won't be send to the end of the argument line.

you want "xargs"
http://www.mkssoftware.com/docs/man1/xargs.1.asp
the following is the same as "cp * *.bak"
ls | xargs -I '{}' cp '{}' '{}'.bak

Similar Messages

  • My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    https://discussions.apple.com/message/16371308#16371308

  • Need to read data from pipe separated file using POJO?

    Hi,
    I need to read data from pipe separated file using POJO.
    There is config.properties file which consists of the
    data mapping.
    Can you help me with sample code or help?
    Regards
    Regards
    Taton
    Edited by: Taton on Mar 7, 2009 4:41 PM

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create PDF from text file with specific layout?

    I wanted to create the pdf from text file in specific layout - Landscape orientation and JIS B3 Page size while at Adobe Acrobat Pro.
    In past, I could do a right click on a text file (desktop area) and select print to print out the document into .pdf BUT only if I set the Adobe PDF to Landscape and JIS B3 Page size BEFORE.  And I could only do 15 text documents at once.
    I wanted to see if I could do the create the pdf from text file with specific layout in Adobe Acrobat without having to go to Control Panel to preset the Adobe PDF to specific layout at every time.   I would have to set Adobe PDF back to normal layout after I'm done with these pdf print outs.  I do lots of pdfs in normal layout.  Sometimes I would forget to do that.
    So, How do I do that?

    No such luck.  It would output the contents in letter size even in JIS B3 Page layout at MS word. 
    Is there a script or action where I could set the orientation and page size before creating PDF on these text files?

  • Need to get catalog item from MDM of a specific supplier

    Hi gurus,
    i need to get the list of catalog item from MDM of a specific supplier,
    user will give the supplier and i need to bring the list of the catalog item
    that belong to the supplier that the user gave me,
    through abap.
    is anyone can help me with wich class+method do i need to use if i have the supplier name or id?
    thanks in advanced,
    dana.
    Edited by: dana leving on Jan 10, 2011 3:59 PM

    Hi Dana.
    You can achieve this through MDM Webservices.
    1. Create a MDM Webservice
    2. Configure the tables and list the list of fields which you want to retrieve
    3. You can specify the search criteria as well(supplier=XXX)
    4. Generate it and save it
    You can deploy the application in your landscape and call this webservice from your custom application to create shopping cart.
    The below link will give you an insight of MDM Webservices.
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/45/018c03166a0486e10000000a155369/frameset.htm
    Hope it helps.
    Regards
    Bala

  • Backup error DBM-Api error ( -4'Reading header from pipe:(0:NO ERROR(0))')

    Hello.
    I have ContentServer on SLES 11 and MaxDB 7.6.06.
    When I don`t create backup:
    dbmcli -d SDB -u superdba,123456 -uUTL u2013c backup_start completeT
    dbmsrv: /SAP_DB/76_SP_REL/linuxx86_64/genopt/sys/wrk/incl/SAPDB/ToolsCommon/Tools_DynamicUTF8String.hpp:871: Tools_UTF8ConstIterator Tools_DynamicUTF8String::GetIteratorAtBasis(unsigned int) const: Assertion `(ToPtr(iter) == ToPtr(End())) || (ToPtr(iter) < ToPtr(End()) && ElementType::IsValid(iter))' failed.
    DBM-Api error ( -4'Reading header from pipe:(0:NO ERROR(0))')
    But when I try create this backup from SAP MaxDB Database Studio - all ok.
    Regards.

    Hello,
    1. "But when I try create this backup from SAP MaxDB Database Studio - all ok".
         Did you connect to the database as superdba user?
         What is the dbm user of the database?
         Did you use the completeT medium to create the database backup?
    2. "dbmcli -d SDB -u superdba,123456 -uUTL u2013c backup_start completeT"
        Run:
         dbmcli -d SDB -n localhost -u superdba,123456
         <enter>
    dbmcli on SDB>db_connect
    <enter>
    dbmcli on SDB>backup_start completeT
    <enter>
    dbmcli on SDB>exit
       update with results.
       See the document at:
       http://maxdb.sap.com/doc/7_6/43/b2fbe195701bbde10000000a1553f7/content.htm
    Regards, Natalia Khlopina

  • Remove button from Ribbon in a specific toolbar

    Hi,
    I have created a custom list using feature. the list contains 7 content types inheriting from another custom content type. I have set the toolbar type for different views to "None".
    I want to remove the attach file option from Actions group in Ribbon. I tried the solution given in
    http://sharepoint.stackexchange.com/questions/32606/remove-button-from-ribbon-in-a-specific-toolbar
    by specifying custom action with
     the Registration type "ContentType" and registration Id "Content Type Id" for all the content types.
    <CustomAction
    Id="RemoveUploadButton"
    Location="CommandUI.Ribbon"
    RegistrationType="ContentType"
    RegistrationId="{firstcontenttypeid}">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ListItem.Actions" />
    </CommandUIDefinitions>
    </CommandUIExtension>
    </CustomAction>
    <CustomAction
    Id="RemoveUploadButton"
    Location="CommandUI.Ribbon"
    RegistrationType="ContentType"
    RegistrationId="{secondcontenttypeid}">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ListItem.Actions" />
    </CommandUIDefinitions>
    </CommandUIExtension>
    </CustomAction>
    but still the attach file option is appearing in ribbon under item tab. When I set the toolbar type to "Standard" attach file option disappear.
    Please help. TIA
    -Harry

    Hi,
    I tried to reproduced your issue like this: Create a custom Item Content Type, apply it to a custom list. Then I create a custom action for this custom Content Type with the
    code you provided.
    The outcome is: When I set the Toolbar Type as “Full Toolbar” or “Show Toolbar”, the “Attach File” button disappear as expected, when I set the Toolbar Type as “Summary Toolbar”
    or “No Toolbar”, the “Attach File” button appears again.
    Anyway, I will try to work on it or involve someone familiar with this topic to further look at this issue.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Prevent user from navigating to a specific slide

    How can I prevent user from navigating to a specific slide? In my course, I’ve added two slides at the very end (one slide is a Resources page and the other slide is a glossary).
    I’ve added two buttons on all of the course’s slides, which brings the user to the glossary or resources page when they click on it. This should be the only way they can access these two slides.
    I don't know how I can configure the course navigation bar so that the user can't access these two slides when they advance to the end of the course. I'm essentially looking for a way to "hide" these two slides so that the user can only access them by clicking the Glossary or Resources buttons. 
    Any suggestions?

    You want to keep playbar? It will not be possible then because scrubbing
    the progress bar can always get them to any slide. For buttons it could be
    done,  easiest way is with custom navigation buttons but first have to know
    about that.

  • Cannot send email from Verizon to a specific domain using the web UI

    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?

    rhodeislandred wrote:
    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?
    What is the domain that is giving you the error?

  • How do I move multiple emails from Inbox to a specific folder?

    I have left a lot of emails in my Inbox that should have been moved to specific folders. How do I move them in bulk to their specific folders other than moving each one individually. I have highlighted the messages concerned by searching and then selecting all. I then click on move to....
    Nothing seems to be happening....I'm sure there's probably a step I'm missing here. What would it be??
    A similar problem occurs when I want to do a mass delete of emails from a specific sender....

    I did all that and nothing happened. As it happens, I did manage to deal with the problem, but in a rather convoluted and tedious manner. I went into Edit, Find, and Search messages, typed in the criteria and the messages I wanted moved came up. However, there was no option to "Select All" so I had to highlight each one and then move the lot to the specific folder....that also worked for the delete problem. That is a workable solution to my problem, but the lack of a "select all" option made it very time consuming. However, I guess it's a notice to me to remember to sort my emails more often.
    Thanks for replying....

  • Open web browser from java application to specific page

    Hi,
    I used the code from http://www.javaworld.com/javaworld/javatips/jw-javatip66.html to open a web browser to a specific URL. That worked great! However, I run into a problem if the URL targets a specific page, for example, "http://www.yahoo.com/news.html" would give me an problem with the shortcut problem. Any ideas how to get around that?
    The command rundll32 url.dll,FileProtocolHandler http://www.yahoo.com/news/ would work fine, except anything ends with .htm or .html.
    Thanks,
    David

    It looks like url.dll doesnt like .htm or .html files. For more info look here: http://www.jsiinc.com/SUBI/tip4100/rh4162.htm
    For some reason it is confused by the 'm' character in .html which is odd considering it has no problems with .com
    So if you want to keep using url.dll, do something like this:
    replace ".htm" with ".ht%6D"

  • How to Retrieve Data From Web Service with Optional Arguments

    This should be a simple one. I have a web service that
    returns a list of books. There are 3 optional arguments that can be
    passed to this (ex. book type, author, id) to filter this list. Do
    I still need to use the <mx:request> tags if I am not going
    to pass any parameters to the web service?
    When I look at the services browser in Flex, it says "unable
    to get meta data for CFC". However, if I remove the arguments from
    the CFC and then call the service again, all my data now appears.
    What's the best way to appoach this?
    Thanks in advance

    I have a similar application. What I have done is create one
    argument in my CFC, with a type of "struct". Then, in the Flex
    Application, I create an Object (Associative Array), and pass this
    to the CFC as that one argument.
    Here is the ActionScript:
    // Create the variable to be passed to the WebService
    [Bindable]
    private var object:Object = new Object();
    Then in another function, you create the Object, based on
    specified values - perhaps from ComboBox selections:
    object.bookType = comboBox1.selectedItem["bookType"];
    object.author = comboBox2.selectedItem["author"];
    object.id = comboBox3.selectedItem["id"];
    Then you pass that one argument in your <mx:request>:
    <mx:WebService id="getBooks" wsdl"
    http://server.com/service.wsdl"
    showBusyCursor="true"
    fault="alert(event.fault.faultstring)">
    <mx:operation name="sBooks">
    <mx:request>
    <args>{object}</args>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    Your CFC might look like this:
    <cfcomponent>
    <cffunction method="sBooks">
    <cfargument name="args" type="struct">
    </cffunction>
    </cfcomponent>
    Then you can worry about validating the values passed to the
    CFC in the CFC function. That way, you could send an empty struct
    if you wanted, and the CFC would not throw an exception.
    Hope that helps.

  • How do i move photos from desktop to a specific event.  when i try to drag from desktop to event it is put in a new event.

    How can I move Photos from an existing specific even in IPhoto?  When I try to drag them they go into a newly created event and not my chosen existing one.

    annfrombarnstaple wrote:
    ... they go into a newly created event and not my chosen existing one.
    Correct.
    Drag and Drop the newly created Event into/onto the Event you wish to add it to.
    You will be asked if you want to Merge Events.. click Yes.

  • Need to send a mail from a specific From mail ID thorgh specific Mail serve

    Hi,
    If any errors occured in my interface validation program(plsql) I need to send mail to some mail ids,
    But I need to use specific from mail id and mail server.
    I have no idea of Shell scripting, I tried it with plsql itself but not worked. My Application server is different from DB server.
    Please let me know if any one has the code or any thoughts.
    Thanks

    Please see these links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=UTL_SMTP&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+email+AND+PL%2FSQL&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Email+AND+PL%2FSQL&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Sql loader unable to read from pipe

    Hi All:
    I'm using named pipe along with Oracle SQL*Loader to load some 20 millions rows into database.
    The source of the pipe is from a Java application which write to the pipe using simple FileOutputStream.
    It can be observed that the Oracle SQL*Loader need to wait a lot on the Java application to produce enough data for loading.
    The waiting is fine. However, the Oracle SQL*Loader always exist after loading about 1 million rows with output like:
    SQL*Loader-501: Unable to read file (upipe.dat)
    SQL*Loader-560: error reading file
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    And in this case, the Java will throw IOException with information:
    Exception in thread "main" java.io.IOException: Broken pipe
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:284)
    It runs on Linux environment with 11g database.
    Any idea why this will happen?

    check
         SQLLDR NOT LOADING ALL DATA IN DAT FILE : SQL*Loader-510/SQL*Loader-2026 [ID 741100.1]

Maybe you are looking for

  • How do i know if my ipad3 is 3g or 4g version

    hi good day

  • Export Of Data In The .CSV Format With Column Headings On Top

    I'm trying to export data in the .csv format from a report (Crystal Reports XI Release 2).  When I export the data, the heading appears in the first few columns on the left hand side (i.e. columns "A" thru "G") for every row, rather as a column headi

  • File organizations issues

    I just upgraded from LP7 to LP9 and am having some trouble with my sample instruments. With LP7, I've had my sample files (EXS, Ultrabeat and Garageband) on a secondary internal hard drive with aliases in the default location under app support. So wh

  • Similar to consignment but...

    Hi experts, I have one requirement which is similar to consignment but once the PGI is done ,I want my sales order to get deleted. Is there any standard settings that we can achieve this? or atleast please suggest me any user exit that I can get thro

  • Changing BIOS for SDD Addition

    I plan to add an SSD to my Vostro 230 using a SATA 3 Gbs connection. When I change the BIOS from IDE to ACHI, will this affect the other drives connected in the IDE mode?