02-09-2018
How to find a file that's modified more than 2 days ago but less than 5 days ago?
How to find a file that's modified more than 2 days ago but was modified less than 5 days ago by use of any Linux utility ?
Last edited by abdulbadii; 02-09-2018 at 09:04 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All:
I want to build a shell that delete files created two or more days ago ... I think it could be built using a special command with ls or grep, I'd apreciate any help from you guys
I have a lot of log files from november, december, january and this tool will help me a lot
The files... (3 Replies)
Discussion started by: josecollantes
3 Replies
2. Shell Programming and Scripting
Please tell me how can I wirte a function to return the date 7 days ago by using calendar command? :confused: (2 Replies)
Discussion started by: LAY
2 Replies
3. UNIX for Dummies Questions & Answers
How can I get difference date between today and 15 days ago and all filename is was created before 15 days ago?
It has to be korn shell script.
Thanks. (1 Reply)
Discussion started by: YoungBlood
1 Replies
4. Shell Programming and Scripting
How can I get difference date between today and 15 days ago and all filename is was created before 15 days ago?
It has to be korn shell script.
Thanks. (2 Replies)
Discussion started by: YoungBlood
2 Replies
5. Shell Programming and Scripting
i need a script that can tell me the date 2 days ago or 3 days ago.
please help (7 Replies)
Discussion started by: tomjones
7 Replies
6. Shell Programming and Scripting
How could I using the following example, change it to show 2 days ago within the same time frame 0600 AM to 0600 AM
let foo=`date "+(1%H-106)*60+1%M-100"` bar=foo+1440
find . -mmin +$foo -mmin -$bar | tr -s '/','-' '^' | cut -f2,3 -d"^" | tr -s '^' ' ' |
Please use code tags (7 Replies)
Discussion started by: freddie999
7 Replies
7. Shell Programming and Scripting
i want to find unix file created how many days ago? (4 Replies)
Discussion started by: utoptas
4 Replies
8. UNIX for Advanced & Expert Users
Hi,
the following gives today
$(date '+%d%m%y')
For example 210111 for today (21 of january 2011).
How can I have n days ego ? For example 160111 for 5 days ego ?
thank you. (3 Replies)
Discussion started by: big123456
3 Replies
9. Shell Programming and Scripting
Hi,
I need to grep for a string "Color Yellow" in all log files dated 5 days back until today's date .
So, as today is 20 Dec i need to find in all logs from 16th dec to 20 dec.
Also, i need ls -ltre output for the files that have the "Collor Yellow" string.
Below is my OS:
... (1 Reply)
Discussion started by: mohtashims
1 Replies
10. Shell Programming and Scripting
Hi all,
I have been researching to obtain SSL certification expiry for most of our webistes. For some cases, some hosts where not directly accessible so i finally got a solution working with curl using my proxy. This lists the expiry date which i'm finally looking for.
# curl --proxy... (4 Replies)
Discussion started by: nms
4 Replies
ff_hfs(1M) ff_hfs(1M)
NAME
ff_hfs: ff - list file names and statistics for HFS file system
SYNOPSIS
num] num] inode-list] num] file] prefix] special ...
DESCRIPTION
The command reads the i-list and directories of each special file special, assuming it to be an HFS file system, saving i-node data for
files that match the selection criteria. Output consists of the path name for each saved i-node, plus any other file information requested
using the print options below. Output fields are positional. The output is produced in i-node order; fields are separated by tabs. The
default line produced by contains the path name and i-number fields. With all options specified, the output fields include path name, i-
number, size, and user ID.
The num parameter in the options descriptions is a decimal number, where means more than num, means less than num, and num means exactly
num. A day is defined as a 24-hour period.
lists only a single path name out of many possible ones for an i-node with more than one link, unless you specify the option. With applies
no selection criteria to the names listed. All possible names for every linked file on the file system are included in the output. On
very large file systems, memory may run out before completes execution.
Options and Arguments
recognizes the following options and arguments:
Select a file if the i-node has been accessed in
num days.
Select a file if the i-node has been changed in
num days.
Specify the HFS file system type.
Generate names for any i-node specified in the
inode-list.
Do not display the i-node number after each path name.
Generate a list of all path names for files with more than one link.
Select a file associated with an i-node if it has been modified in
num days.
Select a file associated with an i-node
if it has been modified more recently than the specified file.
Add the specified
prefix to each path name. The default prefix is (dot).
Write the file size, in bytes, after each path name.
Write the owner's login name after each path name.
Echo the completed command line, but performs no other action.
The command line is generated by incorporating the user-specified options and other information derived from This
option allows the user to verify the command line.
EXAMPLES
List the path names and i-numbers of all files in the file system
Same as above, but suppress the printing of i-numbers:
List files on the same file system that have been modified recently, displaying the path name, i-number, and owner's user name (the
option). List only files that have been modified within the last two days (the option):
List all files on the same file system, including the path name and i-number of each file, that was last accessed more than 30 days ago
Find all path names associated with i-nodes and (the option):
Execute the command on an HFS file system
FILES
Static information about the file systems.
SEE ALSO
find(1), ff(1M), ff_vxfs(1M), ncheck(1M), fstab(4).
ff_hfs(1M)