Merging Several Csv Files in one Csv file

Hi,
I have many csv file which do have same structure. I download those data from an external source like Yahoo bu it does not have headers. They jave just 6 columns of data Would you know how I can aggregate them in one file while including a column for each
set of imported csv file having its own file name, such as YHOO or WMT just next to the 6th column?
So, I have 2 questions: 
If ı can add them all in a file and if ı can add the seventh column (the name of each csv file to identify the stock in that combined file.)
Thank you so much for your support

Hi Everybody,
Thanks for the help. I have run the first code below:
$files  = "d:\temp\file1.csv","d:\temp\file2.csv"
$output = "d:\temp\output.csv"
foreach ($file in $files) {
 $contents = get-content $file
 foreach ($content in $contents) {
  $filename = split-path $file -leaf # get filename
  $a = $filename + ";" + $content | out-file $output -append
However, my goal  is to list companies in a tabular fashion (like file 1 should be listed in the first 6 columns of the file and second file is from 7-12 and third file 13-18 and so on).
So my goal is not to append all files below each other but next to each other.
Would you help me regarding that?
Kind Regards, 

Similar Messages

  • Can you merge 2-3 mp3 files in one mp3 file?

    Can you merge 2-3 mp4 files into one mp3 file?

    you can purchase mixing programs (or down load trials and shareware although im usually a skeptic of free programs)

  • Error Message When Merging Multiple PDF Files into One PDF File

    Good Morning,
    I have a problem with Adobe Acrobat 9 Pro. I am trying to merge/combine multiple PDF files into one PDF file, but I keep receiving this error message:
    Does anyone have a fix for this? Thank you!

    To fix:
    Provide a unique name for each form field. This includes the individual PDFs fields. As you intend to combine/merge no field name in each of the individual PDFs can be the same.
    Be well...

  • Can I have two Data Files in One control file of sql*loader tool

    hi,
    Can someone help me out. is it possible to have two Data Files in one control file of Sql*loader.
    And isit possible to run 10,000 records before lunch and 10,000 records before tea and 10,000 records before evening session by giving breaks after every 10,000 records.
    Thanks
    Ram

    Yes. You can specify two datafiles in one control file and can load using sql loader.
    I give you the sample control file.
    Load DATA
    INFILE 'TEST1.CSV'
    INFILE 'TEST2.CSV'
    TRUNCATE
    INTO TABLE TEST_P
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (COL_1,
    COL_2,
    COL_n)
    Hope It will help you.
    -Karthik

  • How to zip multi files into one zip file in ABAP

    hi all:
    As you know, ABAP has CL_ABAP_GZIP class to support zip file function. But it only support one file zip. If I want to zip two files into one zip file, how to do it?
    thanks.

    Hi,
    <li>If you know how to zip one file,  to zip two files , you can follow the below steps.
    DATA:g_zipper     TYPE REF TO cl_abap_zip.
    "create our zipper object
    CREATE OBJECT g_zipper.
    "add 1st file to zip
    CALL METHOD g_zipper->add
       EXPORTING
         name    = file_name
         content = content_x.
      "add 2nd file to zip
    CALL METHOD g_zipper->add
       EXPORTING
         name    = file_name
         content = content_y.
    "save zip
    CALL METHOD g_zipper->save
       RECEIVING
         zip = zip.
    Thanks
    Venkat.O

  • SAP XI - Combine Two files as one in File Adapter

    Experts,
    I want to combine two files as one in File adapter itself.  I am using a simple scenario of File-to-File where i am just sending the file from sender to receiver as it is , EXCEPT, i want to add one line at the end of the file .
    I was thinking of doing this in File adapter , avoiding any mapping program in Integration Repository ..
    ANY INDEA's ??
    Regards,
    Ashutosh

    Hey
    You have 3 options,first one can be to execute a OS command before message processing or use adapter modules to append the new line in the sender adapter.
    the second option(and better one) is to do this via message mapping.
    third option is to write a OS script and execute it after message processing on receiver file adapter.
    one thing you need to make sure is that since OS scripts run on XI server itself(not on FTP server) so in case you are picking file from FTP server and delivering to FTP ,then you can't use option 1 or 3,you can only use option 2
    Thanx
    Aamir

  • Can we combine multiple excel files into one excel file using SSIS?

    I have a bunch of excel files in a specified folder. I wanted to combine all the excel files into one excel file by adding additional tabs in one excel file. Can I do this using SSIS?
             OR
    I know using macro we can combine multiple excel files. Can we run a excel macro in SSIS? Please help me.
    Actually the complete package is this:
    Step1: Using FTP task I'm downloading the bunch of excel files into a folder.
    Step2: Above implementation is the second step that I have to do.  

    You can do it in two steps
    1. First get all data from excel sheets to a sql staging table. For that you need to use a looping logic as explained in below link (you dont required the additional logic used for checking file name etc in below example as you need all files). Also make
    source as excel instead of flat file
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    2. Once you get the data onto a single table, use below to get it exported to multiple sheets within same excel destination file
    http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Mixing sound files into one sound file. Urgent

    Hi,
    I want to mix different sound files into one sound file but I don't have any idea of how to do this. Can anybody tell me how or just point me to the right tutorial. I do not want to do this through an applet.
    Thanks all in advance.

    try it this way:
    String oneFile = "mp3" + "wav" + "allOthers";
    you can use System.out.println(oneFile) to see if it works. good luck!

  • Is there a way to merge several iCal calendars into one?

    Anyone know if there is a way to merge several iCal calendars into one Calendar? I've separated a few different calendars for things and want to merge all of those events into one universal Calendar. I asked Apple Support and they stated there isn't a way to do this. So, I'm throwing this out there in case someone knows a way.
    Thank you!

    Found the answer after troubleshooting on my own. I was able to do this on a PC by using Office 2007 and the calendar in there. I also had to setup Mobile Me to the calendar on my PC which was fairly easy.
    What you'll have to do is have Mobileme sync your calendar data with Outlook.
    Then after they sync in Outlook... manually select each imported calendar, choose to view all appointments, select all (to select all of your events), copy, then paste them into the main "Calendar".
    Follow this step for all of your calendars and it works like charm.
    The only thing left to do after you've copied them all is to delete the old calendars after you have all of the events copied.
    This may be able to be done in iCal too using similar methods, however it was really easy for me to do it in Windows with Outlook 2007.
    Just keep in mind that you want to view all events from each separate calendar and just copy those into your main calendar.

  • Open 100 files in one photoshop file

    Hi,
    I need to open 100 files in one Photoshop file.
    I would like to have those 100 files on a different layer.
    Is there a way to do this faster than opening each of them and copying them one by one in a file?
    thanks

    Hi Dedinne.
    A simple action should do it. It is run as a batch on your source images.
    1. Select All.
    2. Copy.
    3. Close
    4. Paste.
    The target image is created and left open before the action is run on the source images.
    Batch opens the source image.
    1. & 2. Copy the source image.
    3. Closes the source image.
    4. Pastes into the target image, which remains open during the process receiving each image in turn.
    FWIW.
    Peace,
    Lee

  • Merge several support messages to one support message

    Hi everybody!
    We are facing a problem with the clarcity of support messages.
    Normally different problems (support messages) belong to the same topic (background), respectively can be solved with one answer. So, is it possible to merge several support messages to one support message to develop more clearness?
    Currently we are referencing the tickets via text (for example: see ticket 8000000976) and that is not very satisfying.
    Thanks for your answers!
    Regards
    Daniel Köß

    Yes. You can if you have executed ONLY the action "Confirm Message to SAP"(without message status "Confirmed").
    There are two ways to confirm the message to SAP.
    1. Option1:
        Choose the message status as "Confirmed" and execute the action "Confirm Message to SAP".
        This confirms the message to SAP as well as confirms to Solution Manager System also.
        So you cann't make any more changes or cann't execute no more actions.
    2. Option2:
        Just execute the action "Confirm Message to SAP" without choosing any status.
        This confirms the message to SAP but not on support desk system(solution manager system).
        So you can make changes or can execute any action including "Confirm Message to SAP"
        one more time.
    Let me know if you are still not clear.
    Regards,
    Sanjai

  • I need to combine multiple pdf files to one pdf file

    i need to combine multiple pdf files to one pdf file
    what product do I need to purchase?

    Or the PDF Pack online service.

  • How do I combine pdf files into one pdf file?

    How do I combine a number of pdf files into one pdf file?

    If you want a more affordable option, you can try CreatePDF from Acrobat.com.

  • Joining several swf files into one swf file

    hello everybody
    i've been dealing this issue for too long and decided to ask for  help - how can I unite 15 swf files which placed in one folder to a one swf file???
    i tried all kindes of merging softwares like "Join (Merge, Combine) Multiple SWF Files Into One Software" and "WinMerge" without success and tried to convert swf to flv (cause i found other merging software for flv files) but again...
    I have CS5 so if i'll have to open Flash for this i will, though i'm trying to avoid that and even then i'm gonna need full instructions.
    All i need is this simple thing so i'll appreciate very much any help
    Thanks & Good Day
    Keren

    Hi Ned
    Again - thank you very much.
    I've got the source files and i'm on the run now.. kind of..
    I did as you recomצended and used a code from one of the AS3 UILoader tutorials , and it seems to work:
    import flash.net.URLRequest;
    import flash.events.ProgressEvent;
    import fl.containers.UILoader;
    var myLoad1 = "fastflipPage.swf";
    var request:URLRequest = new URLRequest(myLoad1);
    loader.scaleContent = false;
    loader.addEventListener(Event.COMPLETE, completeHandler);
    loader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    loader.load(request);
    loader.load(request);
    function progressHandler (event:ProgressEvent):void
    status_txt.text = "Percentage Loaded" +
    Math.round(event.target.percentLoaded);
    function completeHandler (event:Event):void
    status_txt.text = "Loaded Done";
    So... i'm tring to find some answers to my next step : in the code above im loading only one file and i need to load 30 files so they could play one after another. i noticed that i can create many uiloader instances and load several external SWFs in the same scene without writing a script to each one of them... is that right? and if so, how can i do that???
    I'm full of hope to figure this task, meantime will look for more answers
    Thanks in advance
    Keren

  • How to merge pdf files into one pdf file?

    In E-Rec we need the capability to mass printing for correspondance. There i want to merge pdf files for candidates into one pdf file. I am doing the following:
    Data: lv_document1           TYPE rcf_s_cs_document_content.
    LOOP AT activity_object_tab INTO ls_activity_object.
        lo_act_corr ?= ls_activity_object-activity.
         CALL METHOD lo_act_corr->process_document
           EXPORTING
             channel  = 'FRONTEND'
           IMPORTING
             document = lv_document1.
      ENDLOOP.
    Now lv_document1 contains the pdf file in  lv_document1-DOCUMENT_X which is of type RAWSTRING.
    This works for one candidate, in this case the pdf for last candidate will be displayed.
    But how would i append in the loop or what would i need to do display all candidates in one pdf.
    Any help will be appreciated.
    Thanks

    File>Create PDF>From File.
    Please post followups in the Acrobat forum.
    Bob

Maybe you are looking for

  • How to make default value in a drop down list

    Hi,       I have created a drop down list using Selection-Screen code. I have three values in it. I would like to make one of the option as a default value. How to achieve it? I am working on module pool program. I have few screens as a part of my pr

  • Emails headers received as part of email text

    We are using the script below to send email notifications. When a user receives the mail part of the email headers are included in the message body. I have included an example underneath the script. procedure pm33_verification_mail  ( email_in  in va

  • Script execution in RAC

    We have a 2 node RAC in place with different DB names like dev1 in one node and dev2 in another node. DB is up and running . Now I need to create tablespace, schemas ,objects etc. DO I need t execute the scripts in both nodes of the RAC? .How this wi

  • Setup AirPrint on Mac but will not AirPrint on IOS Devices! Why?

    Setup AirPrint on Mac but will not AirPrint on IOS Devices! Why? Latest software on all devices. Works on Mac and pc computers... But not my iPhone 4s, or iPad2s...

  • Newspaper layouts cause major usability problems for your website

    Think about what happens if a [Web Development|http://www.intellixmedia.com/web-development.htm] page is laid out in a newspaper-type multiple column format. How would visitors read that page? There will be this thin strip of text going down the page