05-03-2007
How to list files with specific created date
Hi,
Would like to ask, which command is used to list all the files for specific date (says 1st May) and its size, for all files (including its subdirectory), in a mounted NFS disk to HP-UX.
I would like to check for the total files came into my disk on 1st May.
Very much appreciating your help, thanks.
This User Gave Thanks to Draculla For This Post:
10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
thanks in advance for reading and anyposts...
I was wondering if its possible to find all files in a directory with a specific date.
I know I can do:
but that will only give a list of files greater than todays date... Any ideas?
Thanks,
Marky Mark... (4 Replies)
Discussion started by: B14speedfreak
4 Replies
2. Shell Programming and Scripting
Hi I need to write a script to list files in a directory created within specific date and time for eg list files created between Apr 25 2007 11:00 to Apr 26 2007 18:00. and then i have to count them
Any suggestions pls ? (3 Replies)
Discussion started by: jazjit
3 Replies
3. Solaris
Can you please let me know the command to list the files that are created before some date, this we want to use for the following
Eg: Move all the files that got created before 2006 to new folder in Solaris (3 Replies)
Discussion started by: csreenivas
3 Replies
4. UNIX for Dummies Questions & Answers
I am working on a script that prompts a user name and creates a list in a username.dat file. Furthermore, I have created a sorted_username.dat file. My question is this: My script uses the word "finished" != finished to break the while loop. How can I avoid having the word "finished" show up in... (5 Replies)
Discussion started by: erest8
5 Replies
5. Shell Programming and Scripting
There is a system logging a huge amount of data and we need to delete some of the older logs .I mean the files that are created before one week from today. Here is a listing of files that are sitting there:
/usr/WebSphere/AppServer/logs
# ls -l
-rw-r--r-- 1 root system 3740694 May... (5 Replies)
Discussion started by: moustafashawky
5 Replies
6. UNIX for Dummies Questions & Answers
A newbie question...
I need to get a list of the Files and folders which are greater then a specific date. I want write the output to a Text file.
What I know ls -lrt gives me list of all the files ordered by date. Also ls > fileName will write the results to a text file.
Please help (6 Replies)
Discussion started by: rkaif
6 Replies
7. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
8. 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:
Input:
atr files:
... (1 Reply)
Discussion started by: yuvaa27
1 Replies
9. Shell Programming and Scripting
Hello Gurus,
I am facing one issue to get a file for a specific time. There are about 300 files created between 6.30 pm to 7.15 pm everyday.
Now I wanted only the file which is created on 6.45pm. No other files required.
I have used "find" command to get the files, but not getting the expected... (3 Replies)
Discussion started by: pokhraj_d
3 Replies
10. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
quot(8) System Manager's Manual quot(8)
NAME
quot - Displays information about user files
SYNOPSIS
/usr/sbin/quot [-cfghnv] [file_spec ...]
PARAMETERS
Specifies one or more file systems. Specify a file system by entering its name as defined by its file_spec parameter in the file. Other-
wise, how you specify a file system depends on whether it is UFS or AdvFS and whether it is mounted.
To specify a UFS file system that is mounted, enter the name of its character device special file. For example: /dev/rdisk/dsk3c.
To specify a UFS that is not mounted, enter the name of its block device special file. For example: /dev/disk/dsk3c.
To specify an AdvFS fileset that is mounted, enter the name of the file domain, a pound-sign(#) character, and the name of the file-
set. For example: root_domain#root.
You cannot specify an AdvFS fileset that is not mounted.
FLAGS
Displays three columns about user files: each file's size in 1024-byte disk blocks, the number of files that are the same size as the file,
and the cumulative total of 1024-byte disk blocks that are in files that are of the same size or smaller than the file. Displays three
columns about user files: the space allocated for the user's files in 1024-byte disk blocks, the number of files owned by the user, and the
user name. Displays three columns about user files in different groups: the space allocated for the user files in 1024-byte disk blocks,
the user name, and the user's group. For UFS, displays two columns about user files: an estimate of the space allocated for the user
files in 1024-byte disk blocks and the user name. The estimate does not include calculations for sparse files and therefore inaccurately
represents them.
The flag is not implemented for AdvFS filesets. Displays a list of all files and the user name of their owners. However, you must
use the flag in the following pipeline: ncheck filesystem |sort +0n| quot -n filesystem
For example:
# ncheck /dev/rdisk/dsk0a|sort +0n|quot -n /dev/rdisk/dsk0a
> quot.out
If you attempt to use the -n flag by itself, the quot command hangs. Displays five columns about user files: the space allocated
for the user files in 1024-byte disk blocks, the user name, and how many blocks there are in user files that have not been accessed
in 30, 60, and 90 days.
DESCRIPTION
The quot command displays information about each file system's users and the files that they own. If you do not specify a file system, the
quot command processes all file systems of type ro, rw, or rq that are listed in the /etc/fstab file.
NOTES
The term file system represents either a UFS file system or an AdvFS fileset.
RESTRICTION
You must be the root user to use the quot command.
For UFS file systems, the file_spec parameter must be the name of a device that can be opened for reading.
EXAMPLES
The following command displays the blocks used and the number of files owned by each user on the mounted file system specified by the
/dev/rdisk/dsk1a character device special file name: # quot -f /dev/rdisk/dsk1a /dev/rrz1a: 42813 760 root 23882 543 bin
6 2 devbld
The following command displays the number of blocks owned by each user: # quot staff_domain#usr
staff_domain#usr: 308522 bin 93881 smith 62270 root
4335 #553
3615 bold
24 daemon
15 steven
14 jones
14 walter
6 adm
3 north
The following command displays the aging of files in the test_domain#test fileset:
# quot -v test_domain#test test_domain#test: 788912 jdoe 334932 299802 297186
1350 root 1318 1318 1310
13 nobody 13 13 0 #
FILES
Command path Contains user information Lists file systems
RELATED INFORMATION
ls(1), du(1). delim off
quot(8)