Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Copying files with the latest date Post 79962 by shashi_kiran_v on Tuesday 2nd of August 2005 11:12:05 AM
Old 08-02-2005
Hi Vino,

I changed as mentioned but its not working properly..

I had three months file i.e. sep, jun & may of 2005.

But it came out after copying jun's file instead of sep file.

Thanks
Shash
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copying files created after a specified date/time

I need to write a script that copies files from one directory to another that were created after "today 6:30". This script will be NOT be ran at the same time each day. any help is appreciated. (2 Replies)
Discussion started by: jm6601
2 Replies

2. Shell Programming and Scripting

Loop through files in dir, omit file with latest date

I want to loop through files in a directory but omit the file with the latest date in my list of files. How would I accomplish this? Thanks (2 Replies)
Discussion started by: stringzz
2 Replies

3. Shell Programming and Scripting

copying the latest file

Hi, I have a problem. I have some text files in a folder. The names can be like: emp_20080307053015.dat emp_20080306053015.dat emp_20080305053015.dat emp_20080304053015.dat The date format appended is like yyyymmdd and timestamp. What i need is i have to copy the latest file every... (12 Replies)
Discussion started by: Aswarth
12 Replies

4. Shell Programming and Scripting

shell script to find latest date and time of the files

Hi everyone, Please help:) I have a list of 1000 different files which comes daily to the directory.Some of the files are not coming to the directory now. I need to write a shell script to find the latest date and time of the files they came to the directory. The files should be unique.... (1 Reply)
Discussion started by: karthicss
1 Replies

5. Shell Programming and Scripting

Copying latest file into a folder

Hello all, this is my first post while i am trying to understand unix. I would basically like to know if i can do this: Lets say i have a folderA and folderB And i save something in folderA Can i make a script that checks folderA latest file, then compares it with the date of latest file in... (16 Replies)
Discussion started by: takissd
16 Replies

6. Shell Programming and Scripting

Copying a directory structure with the latest versions of files

Hello I have three directory structures for code releases. Each directory structure looks like this: bash-3.00$ ls -R | more .: Test_Release_1 Test_Release_2 Test_Release_3 ./Test_Release_1/dbcode: rp_online_import_srdp.pkb-1 srdp_ar_validation.pkb-1... (1 Reply)
Discussion started by: Glyn_Mo
1 Replies

7. Shell Programming and Scripting

How to backup latest date files?

Hi, I have below two situations to handle, 1. I have list of files with file names having date&time. I have to backup to old date files. say I have below files in a directory, 1. XX123_20101004010101.dat 2. XX124_20101004010201.dat 3. XX121_20101003010101.dat 4.... (6 Replies)
Discussion started by: smr_rashmy
6 Replies

8. UNIX for Dummies Questions & Answers

latest files copying over to new path

ls -lrt | nawk -v D="$(date +'%b%e:'| sed 's/ //g')" 'D==$6$7":"{sub(".*"$9,$9);print}' This picks only the latest files created based on the timestamp for that particular day.. how do i copy over the same files to a different location???? (1 Reply)
Discussion started by: win4luv
1 Replies

9. UNIX for Dummies Questions & Answers

Selecting the file of latest Date

Hi Folks, I have one query that there is a folder in which daily several logs files are getting created , I reached to that location through putty but what I observer that 10 files of different date are been created with same name , what I need to see is the latest file ...let say the location is ... (5 Replies)
Discussion started by: KAREENA18
5 Replies

10. Shell Programming and Scripting

Perl : copying only the latest file to other directory

In linux.. In a directory there are 3 files which I want to copy only the latest file (ls -ltr myfiles*.txt|tail -1) to other directory in perl? Could anyone please help me with the code? Regards, J (1 Reply)
Discussion started by: scriptscript
1 Replies
DateTime::Locale::sr_Latn(3)				User Contributed Perl Documentation			      DateTime::Locale::sr_Latn(3)

NAME
DateTime::Locale::sr_Latn SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'sr_Latn' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Serbian Latin. DATA
This locale inherits from the DateTime::Locale::sr locale. It contains the following data. Days Wide (format) ponedeljak utorak sreda Xetvrtak petak subota nedelja Abbreviated (format) pon uto sre Xet pet sub ned Narrow (format) p u s X p s n Wide (stand-alone) ponedeljak utorak sreda Xetvrtak petak subota nedelja Abbreviated (stand-alone) pon uto sre Xet pet sub ned Narrow (stand-alone) p u s X p s n Months Wide (format) januar februar mart april maj jun jul avgust septembar oktobar novembar decembar Abbreviated (format) jan feb mar apr maj jun jul avg sep okt nov dec Narrow (format) j f m a m j j a s o n d Wide (stand-alone) januar februar mart april maj jun jul avgust septembar oktobar novembar decembar Abbreviated (stand-alone) jan feb mar apr maj jun jul avg sep okt nov dec Narrow (stand-alone) j f m a m j j a s o n d Quarters Wide (format) 1. kvartal 2. kvartal 3. kvartal 4. kvartal Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1. kvartal 2. kvartal 3. kvartal 4. kvartal Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide Pre nove ere Nove ere Abbreviated p. n. e. n. e Narrow p. n. e. n. e Date Formats Full 2008-02-05T18:30:30 = utorak, 05. februar 2008. 1995-12-22T09:05:02 = petak, 22. decembar 1995. -0010-09-15T04:44:23 = subota, 15. septembar -10. Long 2008-02-05T18:30:30 = 05. februar 2008. 1995-12-22T09:05:02 = 22. decembar 1995. -0010-09-15T04:44:23 = 15. septembar -10. Medium 2008-02-05T18:30:30 = 05.02.2008. 1995-12-22T09:05:02 = 22.12.1995. -0010-09-15T04:44:23 = 15.09.-10. Short 2008-02-05T18:30:30 = 5.2.08. 1995-12-22T09:05:02 = 22.12.95. -0010-09-15T04:44:23 = 15.9.-10. Default 2008-02-05T18:30:30 = 05.02.2008. 1995-12-22T09:05:02 = 22.12.1995. -0010-09-15T04:44:23 = 15.09.-10. Time Formats Full 2008-02-05T18:30:30 = 18.30.30 UTC 1995-12-22T09:05:02 = 09.05.02 UTC -0010-09-15T04:44:23 = 04.44.23 UTC Long 2008-02-05T18:30:30 = 18.30.30 UTC 1995-12-22T09:05:02 = 09.05.02 UTC -0010-09-15T04:44:23 = 04.44.23 UTC Medium 2008-02-05T18:30:30 = 18.30.30 1995-12-22T09:05:02 = 09.05.02 -0010-09-15T04:44:23 = 04.44.23 Short 2008-02-05T18:30:30 = 18.30 1995-12-22T09:05:02 = 09.05 -0010-09-15T04:44:23 = 04.44 Default 2008-02-05T18:30:30 = 18.30.30 1995-12-22T09:05:02 = 09.05.02 -0010-09-15T04:44:23 = 04.44.23 Datetime Formats Full 2008-02-05T18:30:30 = utorak, 05. februar 2008. 18.30.30 UTC 1995-12-22T09:05:02 = petak, 22. decembar 1995. 09.05.02 UTC -0010-09-15T04:44:23 = subota, 15. septembar -10. 04.44.23 UTC Long 2008-02-05T18:30:30 = 05. februar 2008. 18.30.30 UTC 1995-12-22T09:05:02 = 22. decembar 1995. 09.05.02 UTC -0010-09-15T04:44:23 = 15. septembar -10. 04.44.23 UTC Medium 2008-02-05T18:30:30 = 05.02.2008. 18.30.30 1995-12-22T09:05:02 = 22.12.1995. 09.05.02 -0010-09-15T04:44:23 = 15.09.-10. 04.44.23 Short 2008-02-05T18:30:30 = 5.2.08. 18.30 1995-12-22T09:05:02 = 22.12.95. 09.05 -0010-09-15T04:44:23 = 15.9.-10. 04.44 Default 2008-02-05T18:30:30 = 05.02.2008. 18.30.30 1995-12-22T09:05:02 = 22.12.1995. 09.05.02 -0010-09-15T04:44:23 = 15.09.-10. 04.44.23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 Ed (E d.) 2008-02-05T18:30:30 = uto 5. 1995-12-22T09:05:02 = pet 22. -0010-09-15T04:44:23 = sub 15. EEEd (d EEE) 2008-02-05T18:30:30 = 5 uto 1995-12-22T09:05:02 = 22 pet -0010-09-15T04:44:23 = 15 sub hhmm (hh.mm a) 2008-02-05T18:30:30 = 06.30 popodne 1995-12-22T09:05:02 = 09.05 pre podne -0010-09-15T04:44:23 = 04.44 pre podne hhmmss (hh.mm.ss a) 2008-02-05T18:30:30 = 06.30.30 popodne 1995-12-22T09:05:02 = 09.05.02 pre podne -0010-09-15T04:44:23 = 04.44.23 pre podne Hm (H.mm) 2008-02-05T18:30:30 = 18.30 1995-12-22T09:05:02 = 9.05 -0010-09-15T04:44:23 = 4.44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 popodne 1995-12-22T09:05:02 = 9:05 pre podne -0010-09-15T04:44:23 = 4:44 pre podne Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 popodne 1995-12-22T09:05:02 = 9:05:02 pre podne -0010-09-15T04:44:23 = 4:44:23 pre podne M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d/M) 2008-02-05T18:30:30 = 5/2 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/9 MEd (E, M-d) 2008-02-05T18:30:30 = uto, 2-5 1995-12-22T09:05:02 = pet, 12-22 -0010-09-15T04:44:23 = sub, 9-15 MMdd (MM-dd) 2008-02-05T18:30:30 = 02-05 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 09-15 MMM (LLL) 2008-02-05T18:30:30 = feb 1995-12-22T09:05:02 = dec -0010-09-15T04:44:23 = sep MMMd (MMM d.) 2008-02-05T18:30:30 = feb 5. 1995-12-22T09:05:02 = dec 22. -0010-09-15T04:44:23 = sep 15. MMMdd (dd.MMM) 2008-02-05T18:30:30 = 05.feb 1995-12-22T09:05:02 = 22.dec -0010-09-15T04:44:23 = 15.sep MMMEd (E d. MMM) 2008-02-05T18:30:30 = uto 5. feb 1995-12-22T09:05:02 = pet 22. dec -0010-09-15T04:44:23 = sub 15. sep MMMMd (MMMM d.) 2008-02-05T18:30:30 = februar 5. 1995-12-22T09:05:02 = decembar 22. -0010-09-15T04:44:23 = septembar 15. MMMMdd (dd. MMMM) 2008-02-05T18:30:30 = 05. februar 1995-12-22T09:05:02 = 22. decembar -0010-09-15T04:44:23 = 15. septembar MMMMEd (E MMMM d) 2008-02-05T18:30:30 = uto februar 5 1995-12-22T09:05:02 = pet decembar 22 -0010-09-15T04:44:23 = sub septembar 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y.) 2008-02-05T18:30:30 = 2008. 1995-12-22T09:05:02 = 1995. -0010-09-15T04:44:23 = -10. yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, d. M. yyyy.) 2008-02-05T18:30:30 = uto, 5. 2. 2008. 1995-12-22T09:05:02 = pet, 22. 12. 1995. -0010-09-15T04:44:23 = sub, 15. 9. -010. yMMM (y MMM) 2008-02-05T18:30:30 = 2008 feb 1995-12-22T09:05:02 = 1995 dec -0010-09-15T04:44:23 = -10 sep yMMMEd (EEE, d. MMM y.) 2008-02-05T18:30:30 = uto, 5. feb 2008. 1995-12-22T09:05:02 = pet, 22. dec 1995. -0010-09-15T04:44:23 = sub, 15. sep -10. yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 februar 1995-12-22T09:05:02 = 1995 decembar -0010-09-15T04:44:23 = -10 septembar yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyMM (MM.yy) 2008-02-05T18:30:30 = 02.08 1995-12-22T09:05:02 = 12.95 -0010-09-15T04:44:23 = 09.-10 yyMMdd (dd.MM.yy) 2008-02-05T18:30:30 = 05.02.08 1995-12-22T09:05:02 = 22.12.95 -0010-09-15T04:44:23 = 15.09.-10 yyMMMd (d. MMM yy.) 2008-02-05T18:30:30 = 5. feb 08. 1995-12-22T09:05:02 = 22. dec 95. -0010-09-15T04:44:23 = 15. sep -10. yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyQQQQ (QQQQ yy) 2008-02-05T18:30:30 = 1. kvartal 08 1995-12-22T09:05:02 = 4. kvartal 95 -0010-09-15T04:44:23 = 3. kvartal -10 yyyy (y.) 2008-02-05T18:30:30 = 2008. 1995-12-22T09:05:02 = 1995. -0010-09-15T04:44:23 = -10. yyyyMM (yyyy-MM) 2008-02-05T18:30:30 = 2008-02 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -010-09 yyyyMMMM (MMMM y.) 2008-02-05T18:30:30 = februar 2008. 1995-12-22T09:05:02 = decembar 1995. -0010-09-15T04:44:23 = septembar -10. Miscellaneous Prefers 24 hour time? Yes Local first day of the week ponedeljak SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::sr_Latn(3)
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy