i have two folders both are in different directories.(example ~/folder1/00) (example ~/folder2/01).00 folder contains set of images .am copying 00 folder of images to 01 folders.now i want to compare two folders(00 and 01) each filename along with date and time.if time and date are not same i want to equal the date and time of both images..how should i read and compare both folders of file name along with date and time one by one ..can any one give suggestion for this.
Thanks in Advance
Related
I have to list and collect several specific files on a S3 bucket from different dates.
The path looks like the following:
/path/to/20221201/files/specificfile/
/path/to/20221202/files/specificfile/
The "files" and "specificfile" folders contain several different files, where I am only interest in a specific one from each.
I tried changing the date with * thinking it would list any date, but I get no result.
Any suggestions?
Thanks
I am very new to Informatica PowerCenter, Just started learning. Looking for help. My requirement is : I have to extract data from flat file(CSV file) and store the data into Oracle Table. Some of the column value of the target table should be coming from extracting file name.
For example:
My Target Table is like below:
USER_ID Program_Code Program_Desc Visit Date Term
EACRP00127 ER Special Visits 08/02/2015 Aug 2015
My input filename is: Aug 2015 ER Special Visits EACRP00127.csv
From this FileName I have to extract "AUG 2015" as Term, "ER Special Visits" as Program_Desc and "EACRP00127" as Program_Code along with some other fields from the CSV file.
I have found one solution using "Currently Processed Filename". But with this I am able to get one single value from filename. how can I extract 3 values from the filename and store in the target table? Looking for some shed of light towards solution. Thank you.
Using expression transformation you can create three output values from Currently Processed Filename column.
So you get the file name from SQ using this field 'Currently Processed Filename'. Then you can substring the whole string to get what you want.
input/output = Currently Processed Filename
o_Term = substr(Currently Processed Filename,1,9)
o_Program_Desc = substr(Currently Processed Filename,10,18)
o_Program_Code = substr(Currently Processed Filename,28,11)
Requirement: I need to sort an input file based on Date.
The date is in YYYYMMDD format starting at 56th Position in the flat file.
Now, the I am trying to write a sort card which writes all the records that have the date(YYYYMMDD) in the past 7 Days.
Example: My job is running on 20181007, it should fetch all the records that have date in between 20181001 to 20181007.
Thanks in advance.
In terms of DFSort you can use the following filter to select the current date as a relative value. For instance:
OUTFIL INCLUDE=(56,8,CH,GE,DATE1-7)
There are several definitions for Dates in various formats. I assume that since you are referring to a flat file the date is in a character format and not zoned decimal or other representation.
For DFSort here is a reference to the include statement
Similar constructs exist for other sort products. Without specifics about the product your using this is unfortunately a generic answer.
I have hundreds of files (pictures) that were loaded with the date as part of the name. However, the file names are currently in the format "MM-DD-YY xxxxxxxx.jpg". I would like to rename them to the format "YYYY-MM-DD xxxxxxxxx.jpg", so they can sort better.
Any ideas? I'm running Windows 10.
Thank you,
Luis
Select all the files you want to rename from one date.
Eg : Select all pictures that were taken on 17-10-2016.
Hit F2 to rename.
Now enter the new date format ( i.e 2016-10-17 in our case ).
After reanaming, Hit Enter.
All your files are renamed into the format in which you need.
Similarly, do it for pictures with similar dates.
I have a spreadsheet with a list of users and all the timestamps for their logins for the past two years. I want to find all the users who have not logged in for specified periods of time -- say, not within the past month, not within the past two months.
How can I do this?
The data are in two columns, user ID and login date/time stamps.
user1 11/3/10 13:21
user1 1/3/11 12:54
user1 1/23/11 9:58
user2 10/2/10 10:13
...
Date and time are a single column.
I can see how to find, say users that logged in prior to a particular date but not how to exclude at the same time, those who logged in after that date.
Any help would be much appreciated.
Thanks.
mp
Here is a link to a UDF that would be very helpful in this situation:
http://www.ozgrid.com/Excel/find-nth.htm
It will work basically like a VLOOKUP, but is not limited to only finding the first instance of something. For example, to find the date of the last instance of a certain user (assuming the reference sheet is all in chronological order), build a spreadsheet with 3 columns, one with a unique list of usernames, one with the total number of occurrences, and the third column with the Nth_occurrence formula to return the date of the last occurrence.
number of occurances formula:
=COUNTIF(Sheet1!$A:$A,A1)
formula for third column:
=Nth_Occurrence(Sheet1!A:A,A1,B1,0,1)
You can then compare this last date to see if it falls within the last week, month, etc.
Of course, if you are against UDFs, you could accomplish nearly the same goal by re-sorting your sheet in reverse-chronological order and then just using VLOOKUP, which would of course only find the first instance (which would be the most recent). But this is not nearly as smooth ;-)