10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a list of files, an example below:
-rw-r--r-- 1 smf_oper esg 910773 Jul 6 12:52 am1slc02_ACS_201607061242571_20346.cdr
-rw-r--r-- 1 smf_oper esg 995838 Jul 6 12:52 am1slc01_ACS_201607061243125_19895.cdr
-rw-r--r-- 1 smf_oper esg 557235 Jul 6 12:52... (5 Replies)
Discussion started by: nms
5 Replies
2. Shell Programming and Scripting
find list of files modified for a given day ?
if i have 10 files in my directory, i have modified only 5 ... how to display only modified files ? (1 Reply)
Discussion started by: only4satish
1 Replies
3. Shell Programming and Scripting
trying to find a way to locate files modified in the last hour in a shell script, unfortunately the command 'find . -mmin -60' is not supported on SunOS 5.10 (works on OpenSolaris 5.11 :mad:)
Does anyone know a method of doing this in shell script on 5.10?
cheers (19 Replies)
Discussion started by: rich@ardz
19 Replies
4. UNIX for Dummies Questions & Answers
Hello all - I've looked and have not been able to find a "find" command that will list the last modified date of files within a specific directory and its subdirectories. If anyone knows of such a command it would be very much appreciated!
If possible, I would like to sort this output and have... (5 Replies)
Discussion started by: MichaelH3947
5 Replies
5. UNIX for Dummies Questions & Answers
hi,
I need to find all the modified files before 60 minutes in a folder.
Is that possible to find using mtime in minutes?
Suggestions please.
Thanks for looking into it...
Geetha (8 Replies)
Discussion started by: iamgeethuj
8 Replies
6. Shell Programming and Scripting
hello all im a newbie in the linux world ..i have just started creating basic scripts in linux ..i am using rhel 5 ..the thing is i wanted to create a find script where i could find the last modified file and directory in the directory given as input by the user and storing the output in a file so... (6 Replies)
Discussion started by: tarunicon
6 Replies
7. Shell Programming and Scripting
Hi All,
I am using the below command to check the files modified within last 24hours
find /home/karthik -mtime -1 -type f -exec ls -l {} \;
What parameter do i need to add in the above command to check the files modified in last 2 or 3 days
Kindly let me know if any other alternative... (2 Replies)
Discussion started by: karthikn7974
2 Replies
8. UNIX for Advanced & Expert Users
hello
i need a way to list files modified in a specific month and move them to a specific directry , i mean somthing like :
find . -modifiedtime "May" -print -exec /usr/bin/mv newdirectory
thank u (1 Reply)
Discussion started by: omer_ome
1 Replies
9. Solaris
hello
i need a way to list files modified in a specific month and move them to a specific directry , i mean somthing like :
find . -modifiedtime "May" -print -exec /usr/bin/mv newdirectory
thank u (1 Reply)
Discussion started by: omer_ome
1 Replies
10. HP-UX
hello
i need a way to list files modified in a specific month and move them to a specific directry , i mean somthing like :
find . -modifiedtime "May" -print -exec /usr/bin/mv newdirectory
thank u (1 Reply)
Discussion started by: omer_ome
1 Replies
sleep(1) General Commands Manual sleep(1)
NAME
sleep - Suspends execution for at least the specified time
SYNOPSIS
sleep seconds
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
sleep: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
None
OPERANDS
Non-negative integer specifying the number of seconds for which execution is to be suspended.
DESCRIPTION
The sleep command suspends execution of a process for at least the interval specified by seconds, which can range from 0 to 2,147,483,647
seconds. Depending on system activity, the actual time of suspension may be longer. See the sleep(3) reference page.
[Tru64 UNIX] seconds can be entered as a non-negative decimal, octal, or hexadecimal value.
NOTES
If sleep receives a SIGALARM signal before process execution has resumed, sleep takes one of the following actions: Terminates normally
with a 0 (zero) exit status. (See the sleep(3) reference page for more information.) Ignores the signal Performs default processing
EXIT STATUS
The following exit values are returned: Execution was successfully suspended for at least the requested time, or a SIGALARM signal was
received. An error occurred.
EXAMPLES
To display a message at 4-minute intervals for 20 minutes, create a shell script called remind containing the following:
for i do sleep 240; echo $i sleep 240; echo $i sleep 240; echo $i sleep 240; echo $i sleep 240; echo $i done
To display the message Try calling NHK at 4-minute intervals, enter: remind 'Try calling NHK' To run a command at regular intervals,
create a shell script containing the following:
while true do
date
sleep 60 done
This displays the date and time once a minute. To execute a command after a specified interval, enter the following; (sleep 3600;
echo Time's up) &
This displays the message "Time's up" after one hour.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of sleep: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes
of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for-
mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of
LC_MESSAGES.
SEE ALSO
Commands: wait(1)
Functions: alarm(3), pause(3), sigaction(2), sleep(3)
Standards: standards(5)
sleep(1)