<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Retrive single csv from S3 bucket in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358158#M123293</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to retrive a single csv file from S3 bucket.&lt;BR /&gt;example: I have S3 -&amp;gt; project(folder) -&amp;gt; (contains 11 csv files) -&amp;gt; I want to reterive only one csv (customer) from project folder, That needed csv file's name comes with a combination of (&lt;FONT color="#33cccc"&gt;randomnumber-timestamp-transactionid-customer.csv&lt;/FONT&gt;) so this cannot given as default one.&lt;BR /&gt;&lt;BR /&gt;ts3connection-&amp;gt;ts3list(here i want to filter file name with recent timestamp "3eca-20161011-164913-Customer.csv" customer file)-&amp;gt;ts3get()&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;VK&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 08:07:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-11T08:07:43Z</dc:date>
    <item>
      <title>Retrive single csv from S3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358158#M123293</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to retrive a single csv file from S3 bucket.&lt;BR /&gt;example: I have S3 -&amp;gt; project(folder) -&amp;gt; (contains 11 csv files) -&amp;gt; I want to reterive only one csv (customer) from project folder, That needed csv file's name comes with a combination of (&lt;FONT color="#33cccc"&gt;randomnumber-timestamp-transactionid-customer.csv&lt;/FONT&gt;) so this cannot given as default one.&lt;BR /&gt;&lt;BR /&gt;ts3connection-&amp;gt;ts3list(here i want to filter file name with recent timestamp "3eca-20161011-164913-Customer.csv" customer file)-&amp;gt;ts3get()&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;VK&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 08:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358158#M123293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T08:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive single csv from S3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358159#M123294</link>
      <description>You can use Key Mask to get only the file name that you require. You can mask like *-Customer.csv"</description>
      <pubDate>Thu, 13 Oct 2016 06:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358159#M123294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T06:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive single csv from S3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358160#M123295</link>
      <description>Hi Sankalp
&lt;BR /&gt;Thanks for your reply,
&lt;BR /&gt;I missed to add that in my S3 bucket there are 3 files with -Customer.csv
&lt;BR /&gt;0e4d-20161013-115009-Customer.csv
&lt;BR /&gt;re3f-20161013-114639-Customer.csv
&lt;BR /&gt;we4d-20161013-121309-Customer.csv
&lt;BR /&gt;In this case how I could &amp;nbsp;get the most 
&lt;FONT color="#ff6666"&gt;recent file&lt;/FONT&gt; to my input csv (tfileinputdelimted) and &amp;nbsp;i can see last modified date manually when i open the bucket but how to get the recent dated file.
&lt;BR /&gt;Thanks
&lt;BR /&gt;VK</description>
      <pubDate>Fri, 14 Oct 2016 06:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358160#M123295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-14T06:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive single csv from S3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358161#M123296</link>
      <description>If it Job run on Linux (or windows with bash - CygWin or etc), possible to use tSystem component to run shell script:
&lt;BR /&gt;
&lt;PRE&gt;#!/bin/bash&lt;BR /&gt;FILENAME=$(aws s3 ls s3://_BUCKET_/_FOLDER_/ --recursive | sort | tail -n 1 | awk '{print $4}')&lt;BR /&gt;&lt;BR /&gt;SOURCE='s3://_BUCKET_/'$FILENAME&lt;BR /&gt;TARGET=‘DESTINATION'&lt;BR /&gt;&lt;BR /&gt;aws s3 cp $SOURCE $TARGET&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;of course aws command line utilities must be installed and configured
&lt;BR /&gt;add. or similar in powershell</description>
      <pubDate>Fri, 14 Oct 2016 09:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358161#M123296</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-10-14T09:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive single csv from S3 bucket</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358162#M123297</link>
      <description>Not an ideal approach but can you use tS3List to get the list of files in your bucket --&amp;gt; Store it in a file or tHash --&amp;gt; Get the name of the file with latest time stamp using file name (using tJavaRow or tMap) --&amp;gt; Use that file name is tS3Get file.&amp;nbsp;</description>
      <pubDate>Fri, 14 Oct 2016 13:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrive-single-csv-from-S3-bucket/m-p/2358162#M123297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-14T13:24:10Z</dc:date>
    </item>
  </channel>
</rss>

