Edit pipe delimeted file

I have a pipe delimeted string:
1|2|3|4|5|6
I wish to change the value 4 to 7. Can someone please tell me the best way do this? thanks

vik1491 wrote:
i cant see how the replace methods will work? I can use split easily enough and do some subsequent concatenations but this doesnt seem like the best wayI can't see how you can't see that you can't use a replace method for this...
I mean, you want to change a certain value of which the position isn't clear. Then replace(...) or replaceAll(...) can certainly be used. Have a look at the methods and use the for some replacements to see how they work. If you still think they can't be used, then it means you withheld information about what you're really trying to do because your problem from your original post can certainly be done with a replace(...) method.

Similar Messages

  • Can we pass delimeted file through PI without converting it to XML ?

    Hi All,
    I will be getting File from Sender in Inbound Payload as delimitted file and not in XML structure using XI adapter. So can you please suggest on how I need to do mapping as file will be passed as it is and which need to transfer from Sender to Target system.
    Target side I will be using file adapter to put the file at desired location and as inbound file is not in XML and directly delimetted file there is no need of File Content Conversion too. Please suggest as I am unable to visualise How mapping needs to be done in case of direct passing of delimitted file from Sender to Targeget throgh PI i.e. inbound payload and outbound payload both contains delimitted file field separated by pipe "|".
    Your valuable inputs will be highly appreciated.
    Regards,
    Nitin Patil

    Hi  Nitin Patil ,
    No need to do mapping in ESR/IR . No FCC also
    Do as follows
    1. Create a namespace in ESR/IR only .
    2. Directly go to ID - configuration
    3. In interface determination  give some dummy name for inbound interface .
    Note : Use the propoer namespace which you have created in ESR/IR
    4 Create sender and receiver FIle adapter  - use the same dummy interface name
    5. Create sender and receiver agreement
    Your file will be picked and droped to desired folder as it is.
    But you ignore the errors in SXMB_MONI .
    Regards.,
    V.Rangarajan

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SQL Loader: specify position for pipe separated file

    Hi,
    I have a problem with sql loader. i need to load 5 columns in a table and my file only contains 3 fields (pipe separated file) i need to add a sequenced id and a loading date. When i try to run the below, the sequence and the sysdate is populated correctly, but column3 is inserted into column1. If i add my file two more null columns, then it works properly:
    ||column1|column2|column3
    also if i put my variables in the end it also works, but i cannot restructure the table so this solution doesnt work. Do u have any idea how to specify positions in pipe separated files? i should load file in the below format:
    column1|column2|column3
    it onlz works properly if i add the two pipe in the beginning
    my control file:
    LOAD DATA
    INFILE 'test201001.csv'
    APPEND
    INTO TABLE test_load
    FIELDS TERMINATED BY '|'
    id "seq.nextval",
    sys_creation_date "sysdate",
    column_1,
    column_2,
    column_3
    Thanx your help in advance
    Edited by: user9013593 on 2010.01.19. 6:18
    Edited by: user9013593 on 2010.01.19. 6:19

    user9013593 wrote:
    Hi,
    I have a problem with sql loader. i need to load 5 columns in a table and my file only contains 3 fields (pipe separated file) i need to add a sequenced id and a loading date. When i try to run the below, the sequence and the sysdate is populated correctly, but column3 is inserted into column1. If i add my file two more null columns, then it works properly:I hope someone provides a better solution below, but since no one has yet ...
    Can you load the data "as is" into a work table, then use a PL/SQL program to process the work table correctly according to the data you have?

  • Writing schema for pipe delimited file

    Hi all,
    I have to write a pipe delimited file (|) in .txt at a particular location. I am not seeing this option in native schema creation.
    The file should be written in following format:
    Header1
    Line1
    Line2
    Line3
    Header2
    Line1
    Line2
    Line3
    Can we write a schema for such kind of scenario?
    Here is an example for the format specified above:
    Orderno1|Customer1|site1
    Partno1|price1|Quantity1
    Partno2|price2|Quantity2
    Partno3|price2|Quantity1
    Orderno2|Customer2|site2
    Partno1|price2|Quantity2
    Partno1|price2|Quantity2
    Partno2|price2|Quantity3
    Please help me out.
    Thanks in advance,
    Abhishek.

    Hi Abhishek,
    You are right there is no option in native schema creation wizard for generating '|' delimiter file.
    But you can achieve this problem with another approach.
    step 1: Create schema file for ',' (comma) delimiter through native format builder wizard.
    step 2: open the created XSD file and replace ',' with '|' option in terminatedBy command of each element.
    step 3: Attach this updated XSD file to your outbound(write) service.
    Thanks
    Praveen
    Edited by: PraveenT2 on Nov 19, 2008 11:01 PM

  • Using Aperture 3.51 I am having frequent crashes and freez ups when editing Canon raw files?

    HI,
         I have an IMac with 4 G of Ram and am using Apeture 3.51. When trying to edit CS2 raw files I experience frequent crashes and freez ups of the whole computer. Any suggestions?

    You didn't mention any color calibration being done on your monitor.  This is an essential part of any color-correct workflow.  What are you using to calibrate your monitor (and your printer)?
    Print profiles (for soft-proofing as well as printing) are for specific combinations of paper & printer.  The nine you have are each, most likely, for a common paper (perhaps mfr'd by Canon) to be used with your printer.
    I don't know what you mean when you say "I choose a high standard print option".
    Have you read the User Manual chapter on printing?
    Printing Your Images
    There is also a good appendix on calibration:
    Calibrating Your Aperture System

  • How can I edit an html file in Firefox using View Source?

    I have created an html webpage and saved it to my pc. I can't edit the html file in firefox when I right click on the page and select "View Source". I can view the code but I can't edit it. I can do this in IE9.
    I thought I was able to do this before in Firefox.
    Did my settings change somewhere that I can no longer do this?
    Do I have to have something checked in the Web Developer extensions for it to work?
    I'm using Firefox 24.0
    Thank you for any help with this. :)

    The View Source window in Firefox cannot be used to change computer codes. Nor can the Web Developer tools.
    Sorry for any inconvenience.
    I suggest using Programmer's Notepad.

  • Is editing HD (.mts files) on a laptop possible?

    Hi folks,
    I have recently purchased a CANON Vixia HF20 camcorder with an internal harddrive that outputs ".mts" files.
    I own a DELL Inspiron 1525.
    My processor is an: Intel(R) Pentium(R) Dual CPU T3400 @2.16GHz  2.17GHz
    Memory (RAM):  3.00Gb
    System type:  32-bit operating system
    Windows Vista Home Premium
    I've used Adobe Premiere Pro in the past (non-HD files not on this computer) and enjoy it thouroughly.
    I was hoping to use it again, but the specifications seem to suggest my processor speed is too slow.
    I'm looking for some advice:
    1)  Will CS4 operate on this computer?  And if so, would I be able to edit the .mts files?
    2)  Is there anything I can do to this laptop (upgrades/hardware purchases) that I can do that would enable me to edit these files?
    3)  If this isn't going to work, do you know of other editing software that I could use to edit .mts files on this computer?  (I'm reluctant to purchase a desktop after recently buying this computer).
    Your insights would be most appreciated.  My thanks in advance.
    Kind regards,
    Kyle

    Hi Bill,
    Thanks so much for your great suggestions.  I am a bit confused about your hard drive suggestion:  Is "A 3x I/O w/ SATA connections and 7200 RPM speed" an internal or external drive?  I bought the laptop with an eSATA external drive connection.  If I hook up an external 7200 rpm eSATA hdd, could I expect better performance?  Should I copy the avchd files to it for editing?  Where would you write the preview and other temp files, and does it matter?  do I have control over that?  Other page and virtual memory assignments?
    Finally, if I pre-process the AVCHD files through Adobe Media Encoder and convert them to some other HD format first, will I have better luck editing?  Which formats -- of those  available in Premiere/Encoder -- would you recommend?  I know transcoding is an extra step, but that might be the price of remote editing with the laptop.
    Thanks again,
    Lance

  • How to edit a text file inside jar

    Hi all;
    I have a code that created text file and put this file to other jar archive.
    How can I edit this text file inside jar, add string to this file ?
    Thanks,

    Unpack the jar, edit the file, repack the jar.

  • How to edit a QTVR file

    How can I edit a QTVR file and keep it as a QTVR file after editing.  I just need to crop the size of the rotating 3D object.

    Is there any software that will allow me to edit (crop, add text, etc.)  a QTVR File and keep it a QTVR file?

  • How to edit a shared file on my Mac?

    Hi,
    Is it possible to edit a shared file on my Mac?
    I know it is possible on the web, using Numbers/Pages/Keynote for iCloud Beta. But I was wondering if it is also possible to download and edit the file.
    I think it is also important that the file automatically updates himself when edited on the Mac, so the other user could see my changes.
    So I don't have to download the file --> edit it --> upload the file.
    Hopefully there is a solution for this problem, otherwise I'm hoping this will come in the near-future!
    Kind regards,
    Berend

    challenged2012 wrote:
    How do I use a flash drive on my mac
    Since most flash drives are formatted for PC's rather than Macs, if you plan to use it only with a Mac, when it's plugged in, you can click on it in Disk Utility and partition it GUID and Mac OS Extended (Journaled). Note that if you've already got files stored on it, partitioning it will erase them.

  • How To Edit a .pdf file - Please Help!

    When I Googled the above question, I was told to download the Adobe Acrobat XI.
    I tried downloading the trial version. I was then told to download the Creative Cloud to  be able to download Acrobat XI.
    I downloaded Creative Cloud, then I was taken to the Adobe Applications Manager Page which show a bunch of apps to download.
    I don't  know which app I will need for the editing.  I was looking for Acrobat XI, but it's not showing anywhere.
    I tried downloading Photoshop. This took more than 2 hours. After the download was complete, I tried launching it, but nothing happened.
    I went back & double-checked the instructions, & I'm directed & got stumped at the Applications Manager page once more.
    I find this very frustrating. I wish it were not this complicated.
    I just want to edit a .pdf file, and nothing else. I'm not sure if I want to go through all these maze, or just use FIVVER, pay $5.00 & AVOID all these hassles.@nikoledeon.
    PLEASE HELP!

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How to edit a pdf file?

    I downloaded the free Adobe and i want to edit a pdf file and it wont allow me. asking me to subscribe.

    You want to go to the source program you first edited and authored the file in and create a fresh new PDF from that file. You should always save a current copy of the program file which you authored the PDF file in. Acrobat is not really intended for creating content as such. You can do quick edits in Acrobat by setting up the Touch-up preferences, Preferences>General>Touch up, These should point to the programs you use to edit PDF content, in my case the Object editor is Illustrator and Image editor is Photoshop. Now if you select the touch up object tool and the click on the object(s) you want to edit selecting them, then right click to get the contextual menu and select, Edit Object, Acrobat will create a temp file and open it in the program which you selected in preferences. Do the edit and close the temp file, Acrobat uses the temp file to update the open Acrobat PDF file you were working on.
    Hope this helps

  • How to edit a jar file ?

    Using JDeveloper 11.1.1.0 and it will not allow me to edit a jar file.
    Steps
    File -> Open and select a jar file
    Double Click on MANIFEST.MF
    The status bar displays "Read Only" and "Windows: CR/LF Editing"
    All versioning has been turned off.
    How do I get out of "Read Only" mode and be able to edit anything in the file ?????
    Thank you

    Come on, you can't be seriously try to edit a class file in side a jar.
    One of the reasons they are in a jar is that users don't fiddle around with them. If you have to manipulate the manifest you can do so in the deployment descriptor of the application in JDEV.
    If you are looking for something special in the jar there are a couple of explorer plug ins which allow you to do so (at your own risk).
    Timo

  • Trying to edit a .pdf file. Please help.

    I just downloaded the Adobe Acrobat 30-day free trial, which comes up as "Adobe Assistant" on my machine, and I've been trying to use it for editing a .pdf file, but it doesn't do anything but want to download an entire folder of documents. I don't want it to do that, but can't seem to do anything else. When I load Acrobat separately from a .pdf I already have saved, (even logging in to Acrobat), and try editing the .pdf document, it keeps launching to the website page saying that it needs to be paid for to use. I'm confused. How can I try the editor to see if I like it? Isn't it all one program or is the Assistant different from the Editor?

    I may be wrong, but I think you are not using Adobe Acrobat at all. It sounds as if you are still running Adobe Reader, for some reason, rather than Adobe Acrobat, which looks similar but has many more options. If you are not sure, tell us what you see under TOOLS - main headings - or look at the title bar.

Maybe you are looking for

  • Problema com Lançamento de Custos Complementares na MIGO

    Boa Tarde pessoal, tudo bom? Estou escrevendo aqui no Grupos para ver se alguem pode me ajudar. Aqui na empresa onde estou trabalhando estamos com um caso muito estranho acontecendo em alguns pedidos. E o pior o caso acontece de forma intrmitente, ou

  • Assigning a value to two variables

    I need to assign the same value to two variables is there a way to do this like in some other languages. e.g. I have the following currently: l_test := 'valval' l_counter := 'valval' I want to condense this down into something simpler such as: l_test

  • Error in Inbound B2B: AIP-50031:  B2B adapter general error: java.lang.Null

    Hi, I am getting the following error in inbound B2B - Custom Document over Generic Exchange - SFTP Description: B2B adapter general error StackTrace: Error -: AIP-50031: B2B adapter general error      at oracle.tip.adapter.b2b.engine.Engine.processIn

  • Generating Manager field in OID by using Pre-populate Adapter

    Hi All, I created a pre-populate Adapter that uses First name and Last name of user and add the manager field to OID during provisioning. But during provisioning i am getting Naming Exception. This is what i found in JBoss application server. 09:30:5

  • Page loads, sound plays; prefer page loads, sound not play

    Insert>Media>Plug in I select a sound file, OK. When I publish the page, it even puts a play/stop controller. BUT the sound plays when the page loads, instead of waiting for some one to hit "play".  I want no sound until some one hits "play". (I dont