09-30-2005
Find files newer than...
Is there a way to use the find command to locate files newer than a specific date?
Thanks!
--Alex
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I would like to find if a file called test.log is older than 10 min.
So i wrote :
#!/usr/bin/ksh
FICLOG="/home/uuu/result_test.log"
FIC="/home/uuu/test.log"
touch -t `perl -e 'use POSIX qw(strftime); printf("%s\n",strftime("%m%d%H%M",localtime(time-3600*0.17)));'`... (3 Replies)
Discussion started by: dbfree
3 Replies
2. Solaris
Dear all,
Can you help me in copying files newer than speciifc date
Thanks in advance,
Rajesh (3 Replies)
Discussion started by: RAJESHKANNA
3 Replies
3. UNIX for Advanced & Expert Users
I am running SUSE/8 and SUSE/9 on a high end server (4 CPU, 8G RAM etc)
I have a huge directory structure with over 4million files in it. I have find the files that are modified (created, modified, renamed etc etc) in the last 10 minutes periodically.
I have tried "find -cmin -10" and "find... (2 Replies)
Discussion started by: xxxyyyy
2 Replies
4. Shell Programming and Scripting
I want the same effect as "cp -u" but without create missing files, it is possible ?
ps: bash (2 Replies)
Discussion started by: mrxrsd
2 Replies
5. Shell Programming and Scripting
I am writing a script that looks in a reports directory, copies a specified script to a working folder, copies some data files into the working folder, runs the report, zips the new files, then uploads them.
Right now to determine what files to zip (as I don't know how many report files there... (6 Replies)
Discussion started by: droppedonjapan
6 Replies
6. Shell Programming and Scripting
Hi,
I have a text file, foo.txt, it looks something like below. In the file there is a line that gives the date in the form of: Mon Jun 15 11:09:31 2008. I need to find which date is the newest and then store certain details of that list data to another file. So, in this sample text file, I... (6 Replies)
Discussion started by: boolean2222
6 Replies
7. Shell Programming and Scripting
This should be a simple script, but can't find one with google search.
I just need to find the file that is in many directories, then overwrite that file with a newer version i.e.
find file.jar then overwrite with /root/file.jar
All I get in searches is substitute text with new test inside... (1 Reply)
Discussion started by: haircat
1 Replies
8. UNIX for Dummies Questions & Answers
We had an arrant rsync run and started copying over new files from one system to another.
Although this is what we will want to do at some point, for now, we want to maintain the system as it was a few days ago.
I am looking for a script that will find files that are newer than x days.
... (5 Replies)
Discussion started by: Leyva62
5 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
When this command is issued from a directory other than where the file is located it works fine:
find /db2/D01/log_archive/ -name "S0002166.LOG" -type f
/db2/D01/log_archive/db2d01/D01/NODE0000/C0000000/S0002166.LOG
When I change -name to -newer, it doesn't work. Find only searches the current... (5 Replies)
Discussion started by: fletchdb2
5 Replies
ALEX(1) Alex Lexical Analyser Generator ALEX(1)
NAME
alex - the lexical analyser generator for Haskell
SYNOPSIS
alex [OPTION]... file [OPTION]...
DESCRIPTION
This manual page documents briefly the alex command.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. Instead, it
has documentation in various other formats, including DVI, Info and HTML; see below.
Alex is a lexical analyser generator system for Haskell. It is similar to the tool lex or flex for C/C++.
Input files are expected to be of the form file.x and alex will produce output in file.y
Caveat: When using hbc (Chalmers Haskell) the command argument structure is slightly different. This is because the hbc run time system
takes some flags as its own (for setting things like the heap size, etc). This problem can be circumvented by adding a single dash (`-')
to your command line. So when using a hbc generated version of Alex, the argument structure is:
alex - [OPTION]... file [OPTION]...
OPTIONS
The programs follow the usual GNU command line syntax, with long options starting with two dashes (`--'). A summary of options is included
below. For a complete description, see the other documentation.
-d, --debug
Instructs Alex to generate a lexer which will output debugging messsages as it runs.
-g, --ghc
Instructs Alex to generate a lexer which is optimised for compiling with GHC. The lexer will be significantly more efficient, both
in terms of the size of the compiled lexer and its runtime.
-o FILE, --outfile=FILE
Specifies the filename in which the output is to be placed. By default, this is the name of the input file with the .x suffix
replaced by .hs
-i [FILE], --info[=FILE]
Produces a human-readable rendition of the state machine (DFA) that Alex derives from the lexer, in FILE (default: file.info where
the input file is file.x ).
The format of the info file is currently a bit basic, and not particularly informative.
-v, --version
Print version information on standard output then exit successfully.
FILES
@DATADIR@
SEE ALSO
/usr/share/doc/alex, the Alex homepage (http://haskell.org/alex/) <http://haskell.org/alex/>
COPYRIGHT
Alex Version 3.0.1
Copyright (c) 1995-2003, Chris Dornan and Simon Marlow
AUTHOR
This manual page was written by Ian Lynagh <igloo@debian.org>, based on the happy manpage, for the Debian GNU/Linux system (but may be used
by others).
Glasgow FP Suite 2003-09-09 ALEX(1)