Note that I touch a file "file106" that gets returned as being within 3600 seconds - obviously. Also note that I am only checking in this example for file1* while you may only want to use * or some other filter.
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)
Hi All,
I have a requirement to find out the files which are modified in the last 10 minutes.
I tried the find command with -amin and -mmin options, but its not working on my AIX server.
Can anyone of you could help me.
Thanks in advance for your help.
Raju (3 Replies)
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)
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)
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)
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)
Is there an easy way to find files modified by hours? If you wanted to find something modified by like 28 hours then I know you could do this:
find . -mmin -1440It is pain to break out a calculator and calculate in minutes. Could you do something similar to this? I know I don't have the right... (1 Reply)
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)
Hi,
How can I get files which are modified only in last minute ? it should not display 2 minutes back filels -la
-rw-rw-r-- 1 stuser st 51 Dec 3 09:22 a.csv
-rw-rw-r-- 1 stiser st 50 Dec 3 09:25 b.csv
-rw-rw-r-- 1 stuser st 53 Dec 3 09:33 c.csv
When I run command at 9:34am then I... (7 Replies)
Dears,
I am looking for a script which will work as a watch directory.
I ha directory which keep getting files in every 10 mins and some time delay.
I want to monitor if the directory getting the files in every 10 mins if not captured the last received file time and calculate the delay.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
LEARN ABOUT DEBIAN
replacekey
replacekey(1) General Commands Manual replacekey(1)NAME
replacekey - replace keywords in a FITS header
SYNOPSIS
replacekey [options] <in>
DESCRIPTION
replacekey is aimed at replacing keywords in a FITS file's header by new keywords provided by the user on the command-line.
ALGORITHM
The user can provide a new_keyword, an old_keyword, a value and a comment. first searchs for old_keyword if provided. If it finds it, it
replaces the associated card by the new one (new_keyword=value/comment). If old_keyword is either not found or not provided, associated
card by the new one (new_keyword=value/comment). new_keyword has to be provided.
Examples: You want to change the value of VALUE from 32 to 16 in myfile.fits: % replacekey -k "VALUE" -v "16" myfile.fits
If you want to replace the card with the keyword OLD by "NEW = 3.14 / This is a usefull key" in myfile.fits: % replacekey -k "NEW" -v
"3.14" -c "This is a usefull key" -K "OLD" myfile.fits
If your do not care about the HISTORY cards you have in the header, and want to replace the first one by VALUE=32, you would do:
% replacekey -k "VALUE" -v "32" -K "HISTORY" myfile.fits
OPTIONS -k or --key key
To provide the new keyword.
-K or --old key
To provide the old keyword.
-v or --val val
To provide the new value.
-c or --com com
To provide the new comment.
SEE ALSO
hierarch28 to convert HIERARCH ESO keywords to regular 8-char keywords.
FILES
Files shall all comply with FITS format
BUGS
Modifications are so far only possible in the main header, not in the extensions.
28 Oct 1999 replacekey(1)