Sponsored Content
Full Discussion: How to list today's files
Top Forums Shell Programming and Scripting How to list today's files Post 302097874 by dhanamurthy on Wednesday 29th of November 2006 06:50:46 AM
Old 11-29-2006
-atime 2 retrieves exactly files accesed before two days. But -atime -2 retrieves files that were accessed in less than two days even 1 one day.

Hope this will help

find . -atime -1 > file_name

lists files accessed less than a day. Let us know if this helps
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to list all the files which are not generated today

How to list all the files which are not generated today, and move all the above files to backup dir. (2 Replies)
Discussion started by: redlotus72
2 Replies

2. UNIX for Dummies Questions & Answers

Sort files by date, not showing files from today

Hi all, i'm new here in this forum. I really like the helpful answers in this forum. Here a short question. For a script i have to sort files by date and exclude the files of the actual date. Sorting the files by date and preparing the output for awk is done by this line: ls -l... (3 Replies)
Discussion started by: carlosdivega
3 Replies

3. UNIX for Dummies Questions & Answers

To list all the files created today with directory path

Hi, Can any one tell the command to list all the files that are created as of today from all the directories? The Command "ls -ltR" is listing all the files. But I want the list of files that has been created as of today along with the directory path:) Thank you in advance.:) Regards,... (4 Replies)
Discussion started by: meetusha.b
4 Replies

4. Shell Programming and Scripting

how to list all the files for today in the dir

I am trying following ... ls -ltrh | grep 'Dec 2' but it is displaying files for last year also ..as this dir is full of files from last 3-5 yrs I only want to files for today. e.g . ls -ltrh | grep 'Dec 2' -rw-r----- 1 ajay ajay 0 Dec 2 2010 text23.txt -rw-r----- ... (19 Replies)
Discussion started by: ajaypatil_am
19 Replies

5. Linux

List all files created today exclude last one

Hi, ALL thanks in advance, i listed all files using this command ls -ltr $(date +%Y%m%d)*.xmlbut i would like to exclude the last one created ; Best regard MEROUAN Use code tags, thanks. (4 Replies)
Discussion started by: merouan
4 Replies

6. Shell Programming and Scripting

Move all files except sys date (today) files in Solaris 10

I want to move all files from one directory to another directory excluding today (sysdate files) on daily basis. file name is in pattern file_2013031801, file_2013031802 etc (2 Replies)
Discussion started by: khattak
2 Replies

7. Shell Programming and Scripting

Search files with today date and files come anytime in between 10 pm to 1 am

Hi, i want to make script. In a directory everyday( exclude sat and sun) in between 10 pm to 1 am there are 2 files comes and when file comes it will mail us. Format for files is mentioned below. please help me on making this, and also have year end consider and if files come after 12 am it... (6 Replies)
Discussion started by: pallvi_mahajan
6 Replies

8. Shell Programming and Scripting

List out Process ids restarted today

Hi, I need to list out the processes which are started/restarted today in my Solaris box. If not possible need to convert the process uptime in minutes or seconds and compare it with a configurable value to list out those process ids for further processing in my scripting. Can any one guide... (7 Replies)
Discussion started by: ananan
7 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)
All times are GMT -4. The time now is 08:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy