10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have more than 200K files created in year 2017 under directory having size of 50GB.
I want to all these files in one shot.
Is there any faster option available with find command to delete all these file ? (6 Replies)
Discussion started by: sp23029
2. Shell Programming and Scripting
I'm trying to find a file which is created on current day.... I searched in unix.com and i found, below command.
find /land/ -mtime -1 -type f -print | grep "FF_Member_STG.dat"
The command checks if the file with name "FF_Member_STG.dat" is created today then exit else proceed.
... (3 Replies)
Discussion started by: ace_friends22
3. Shell Programming and Scripting
I need to find all files other than first two files dates & last file date for month and month/year wise list.
lets say there are following files in directory
Mar 19 2012 c.txt
Mar 19 2012 cc.txt
Mar 21 2012 d.txt
Mar 22 2012 f.txt
Mar 24 2012 h.txt
Mar 25 2012 w.txt
Feb 12... (2 Replies)
Discussion started by: Makarand Dodmis
4. UNIX for Dummies Questions & Answers
I am creating a file in unix today.
Is it possible to make the file created as 2 days older (or some past date)?
i dont want to change the system date to older one and try.:rolleyes:
Pandeeswaran (6 Replies)
Discussion started by: pandeesh
5. Shell Programming and Scripting
I am trying to rename files based on the created/born date of the file. I Have a total of 4000 files that i am trying to do this with and would like it to be log_yyyymmddhh.gz right now the files are maillog.???.gz.
Can anyone point me in the right direction of how to get this done via scipt?
... (4 Replies)
Discussion started by: Paulb
6. Shell Programming and Scripting
I need to get the File creation date (MM,DD,YYYY)
using ls -ltr am getting only Month and Day only, I need year also when the file is modified.
Thanks (3 Replies)
Discussion started by: KiranKumarKarre
7. UNIX for Dummies Questions & Answers
how do i find the date a file was created? (3 Replies)
Discussion started by: trob
8. UNIX for Dummies Questions & Answers
After checking all the UNIX threads, I am able to come up with a solution so far. I am working on a shell script where it moves the files to a certain directory. The conditions to check are
1) Check if the file exists in the current directory.
2) Check if the destination directory... (2 Replies)
Discussion started by: madhunk
9. Shell Programming and Scripting
I need to write a script which has to list all the files which are created before six months from now.
kindly help on this ... (7 Replies)
Discussion started by: amirthraj_12
10. UNIX for Dummies Questions & Answers
I was wondering how to manage files (ie. rm, cp , mv) based on date last modified and date created.
ie. Say i want to:
mv ./* ./temp/* (where the date created < 29/1/2006 )
mv ./* ./temp/* (where the date modified > 27/1/2006 && date modified < 29/1/2006)
Thanks in... (1 Reply)
Discussion started by: Geehog_Rare
GREGORIANTOJD(3) 1 GREGORIANTOJD(3)
gregoriantojd - Converts a Gregorian date to Julian Day Count
int gregoriantojd (int $month, int $day, int $year)
Valid Range for Gregorian Calendar 4714 B.C. to 9999 A.D.
Although this function can handle dates all the way back to 4714 B.C., such use may not be meaningful. The Gregorian calendar was not
instituted until October 15, 1582 (or October 5, 1582 in the Julian calendar). Some countries did not accept it until much later. For exam-
ple, Britain converted in 1752, The USSR in 1918 and Greece in 1923. Most European countries used the Julian calendar prior to the Grego-
- The month as a number from 1 (for January) to 12 (for December)
- The day as a number from 1 to 31
- The year as a number between -4714 and 9999
The julian day for the given gregorian date as an integer.
$jd = GregorianToJD(10, 11, 1970);
$gregorian = JDToGregorian($jd);
PHP Documentation Group GREGORIANTOJD(3)