Skip to main content
Tried to clarify; improved capitalization, punctuation and wording; added tag.
Source Link

comparing date Comparing dates of different formats and matching it from another file

I have two data files with different date stamps in different formats (as text in the file contents). I wish  I wish to compare the two dates and print the variable from one file to another according to date in shella shell script. I have  I have a script in matlabMATLAB, but idI’d like to do it in shella shell script.     In one file date, the date format is 2017-01-01 12:00:00. In other the other file it is 20170101 1200. For a variable I want to compare it with date in file1 and and if it matches print variable as column in file1 from file2.

comparing date of different formats and matching it from another file

I have two data files with different date stamps. I wish to compare the two dates and print the variable from one file to another according to date in shell script. I have a script in matlab but id like to do it in shell script.  In one file date format is 2017-01-01 12:00:00. In other file it is 20170101 1200. For a variable I want to compare it with date in file1 and if it matches print variable as column in file1 from file2.

Comparing dates of different formats and matching it from another file

I have two data files with date stamps in different formats (as text in the file contents).  I wish to compare the two dates and print the variable from one file to another according to date in a shell script.  I have a script in MATLAB, but I’d like to do it in a shell script.   In one file, the date format is 2017-01-01 12:00:00. In the other file it is 20170101 1200. For a variable I want to compare it with date in file1 and if it matches print variable as column in file1 from file2.

changed the typography a bit
Source Link

iI have two data files with different date stamps. iI wish to compare the two dates and print the variable from one file to another according to date in shell script.i I have a script in matlab but id like to do it in shell script. inIn one file date format is 2017-01-01 12:00:002017-01-01 12:00:00. inIn other file it is 20170101 120020170101 1200. forFor a variable iI want to compare it with date in file1file1 and if it matches print variable as column in file1file1 from file2file2.

i have two data files with different date stamps. i wish to compare the two dates and print the variable from one file to another according to date in shell script.i have a script in matlab but id like to do it in shell script. in one file date format is 2017-01-01 12:00:00 in other file it is 20170101 1200 for a variable i want to compare it with date in file1 and if it matches print variable as column in file1 from file2

I have two data files with different date stamps. I wish to compare the two dates and print the variable from one file to another according to date in shell script. I have a script in matlab but id like to do it in shell script. In one file date format is 2017-01-01 12:00:00. In other file it is 20170101 1200. For a variable I want to compare it with date in file1 and if it matches print variable as column in file1 from file2.

Source Link

comparing date of different formats and matching it from another file

i have two data files with different date stamps. i wish to compare the two dates and print the variable from one file to another according to date in shell script.i have a script in matlab but id like to do it in shell script. in one file date format is 2017-01-01 12:00:00 in other file it is 20170101 1200 for a variable i want to compare it with date in file1 and if it matches print variable as column in file1 from file2