10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a filelist which contains the "ls" output, i want to extract the filenames written in this files based on date. I know i can run loop and extract the file but i want to avoid it. also there is find command which can be used on directory i.e.
find . -type f -newermt "2019-09-25"... (3 Replies)
Discussion started by: kumarinfa
2. Shell Programming and Scripting
This is related to my post on backup up files.
I really appreciate all the help too. :-)
I would like to delete all but the 3 newest files in my backup directory.
Ubuntu_Documents.zip_09Aug2018_12_00... (2 Replies)
Discussion started by: drew77
3. Shell Programming and Scripting
I have a directory that has numerous files in it, and there is two which are named "filerec_ddmmyyHH24MMSS" by the time they are created so "filerec_010615012250" was created at 01:22:50 on 1st June 2015.
I need to find the most recently created of those 2 files and get the contents of... (4 Replies)
Discussion started by: finn
4. UNIX for Dummies Questions & Answers
My unix version is IBM AIX Version 6.1
I tried google my requirement and found the below answer,
find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20"
But newer command is not working in AIX version 6.1 unix
I have given my requirement below:
... (1 Reply)
Discussion started by: yuvaa27
5. Shell Programming and Scripting
Hi to every one ,
i had ascenario like this..
i had path like
in this i will recive 43 files daily with each file having that days date
i.e like product.sh.20110512
like this i will 43 files every day
i had to find the files. if files are avaliable i... (2 Replies)
Discussion started by: apple2685
6. UNIX for Dummies Questions & Answers
I have a number of files in a folder which are dated yesterday and today.Can i remove all the files which i created today based on date??
is there any syntax for this ?? (1 Reply)
Discussion started by: kanakaraju
7. Shell Programming and Scripting
I have to write one script which will delete the files in the below passion.
If today is 17-Feb-2010 then the script delete only 17-JAN-2010 files from the directory.
Could you please help me, How will I delete the files when the year is leap year, if today is 30th Mar 2010 then how will... (1 Reply)
Discussion started by: kandi.reddy
8. Shell Programming and Scripting
i am having so many files in my directory.Is there any option
to copy files based on date.
i am having file this
-rw-rw-r-- 1 ram user 1 Feb 2 17:12 abc
-rw-rw-r-- 1 ram user 1 Feb 2 17:12 bnw
-rwxrwxr-x 1 ram user 21122 Feb 4... (3 Replies)
Discussion started by: suryanarayana
9. Shell Programming and Scripting
Can anyone help me with this:
To get the count of files that are existing in a directory created on a perticular date like in the example (01/08) .(having same pattern for the filename)
FileName Creted Date
FILE005 ... (6 Replies)
Discussion started by: sbasetty
10. UNIX for Dummies Questions & Answers
I am trying to write a shell script that will remove files in a directory based on the date. For instance, remove all files older than yesterday. Any ideas? (4 Replies)
Discussion started by: hshapiro