Sponsored Content
Top Forums Shell Programming and Scripting how to list files between last 6 hours to 3 hours Post 302300912 by Prat007 on Wednesday 25th of March 2009 11:10:00 AM
Old 03-25-2009
Question how to list files between last 6 hours to 3 hours

Hi Frens,

I want to list some files from a directory, which contains "DONE" in their name, i am receiving files every minute. In this i want to list all the files which are newer than 6 hours but older than 3 hours, of current time

i dont want my list to contain the latest files which are received in last 3 hours , likewise which are received before 6 hours, of the current time.

Any clues??

Thanks so much in advance
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

delete files that are over 2 hours old

guys, I have a need for a script that will delete all files in a given directory that are over 2 hours old. I will set this up to run in cron. I'm having a little trouble coming up with the syntax that will identify these files. Is there a variation of the ls command that I can use to identify... (3 Replies)
Discussion started by: hedrict
3 Replies

2. UNIX for Dummies Questions & Answers

Finding only those files older than 2 hours

I need to write a program that will only remove those files that are older than 2 hours. Is there some variation of find . -mtime ? -name '*' that I can use? Thanks as always for your help. Regards, Dave :) (2 Replies)
Discussion started by: mh53j_fe
2 Replies

3. Shell Programming and Scripting

Files created in last 24 hours

I need a script which list the files which is starting with the word heap*** and that is created before past 24 hours.I need the script using find command. please help me on this. (1 Reply)
Discussion started by: jayaramanit
1 Replies

4. Shell Programming and Scripting

list the file created before 24 hours using ls command

I want to list the files created before past 24 hours using ls command. please help me on this (7 Replies)
Discussion started by: jayaramanit
7 Replies

5. Shell Programming and Scripting

How to find files by hours old?

I need to be able to do the following: Find files in multiple directories that are 6 hours older than the current time? I am using KSH I tried mmtime but it was not a valid option Any help would be great. Thank you! (2 Replies)
Discussion started by: llsmr777
2 Replies

6. Shell Programming and Scripting

files older than few hours

Hi All I need to know the command which can be used to list the files which are 3 hours old so that it can be deleted. (3 Replies)
Discussion started by: mskalyani9
3 Replies

7. Shell Programming and Scripting

ls files newer than 6 hours

How do I list al files in a folder with a creation date/time newer than 6 hours? (2 Replies)
Discussion started by: locoroco
2 Replies

8. Homework & Coursework Questions

list of files modified 10 hours ago using grep

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Here is the question: Make a list of files in your home directory that were changed less that 10 hours ago,... (3 Replies)
Discussion started by: fight4love
3 Replies

9. Shell Programming and Scripting

List of Running Jobs In Last 4 Hours

Hi Experts, Please help me in this. I am trying this code on AIX 5.3. I need list of jobs that executed in last 4 hours. I have a schedule on this script - cron executes it and sends mail to me for every 2 hours. I have a Job time and have around 100 jobs those execute daily. What all i need... (2 Replies)
Discussion started by: rajubollas
2 Replies

10. Shell Programming and Scripting

List files which access before 2 hours in solaris

Hi Friends, I want to the list the files in the folder which was access before 2 hours in Solaris. Thanks in advance...... (3 Replies)
Discussion started by: natraj005
3 Replies
finger(1)						      General Commands Manual							 finger(1)

Name
       finger - print user finger information

Syntax
       finger [options] [name...]

Description
       By  default,  lists  the login name, full name, terminal name and write status, idle time, login time, and office location and phone number
       for each current ULTRIX user.  Terminal write status is noted as an asterisk (*) before the terminal name if write  permission  is  denied.
       Idle  time is given in minutes if the listing shows a single integer, hours and minutes if a colon (:) is present, or days and hours if a d
       is present.

       A longer format also exists and is used by whenever a list of people's names is given.  (Account names as well as first and last  names	of
       users  are  accepted.) This format is multi-line, and includes all the information described above as well as the user's home directory and
       login shell.  Additionally, it displays the information contained in the files .plan and .project, both of which are located in the  user's
       home directory.	If no list is given, all the people currently logged in are shown.

       The  command  may  be used to look up users on a remote machine.  The format is to specify the user as user@host.  If the user name is left
       off, the standard format listing is provided on the remote machine.

Options
       -b   Displays a briefer long form list of users.

       -f   Disables printing of headers for short and quick outputs.

       -h   Suppresses printing of the .project file.

       -i   Displays list of users with idle times.

       -l   Displays output in long format.

       -m   Matches arguments only on user name.

       -p   Suppresses printing of the .plan file.

       -q   Displays list of users.

       -s   Displays output in short format.

       -w   Displays narrow short format of specified users.

Restrictions
       Only the first line of the .project file is printed.

       The user's or file cannot be a link to another file.  If either of these files is something other than a regular file, it will be ignored.

Files
       Who file

       User information

       Last login times

       Plans

       Projects

See Also
       chfn(1), w(1), who(1), fingerd(8c)

																	 finger(1)
All times are GMT -4. The time now is 12:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy