List files by creation date on command line

Can anyone suggest a method of obtaining a list of files in a directory created on or after a certain date? That is, files created before that date are filtered out and not printed to stdout. Ideally I'd also like to add other restrictions, such as searching for partial matches of a given file name.
Thanks.
Marc
iMac 800mzh   Mac OS X (10.4.2)  

Hi Mihalis,
   Unix commands have access to the classic UNIX dates: modification, change and access. The creation date is purely HFS metadata about which UNIX tools have no clue. Thus, Andy's reference to the Spotlight Query documentation is correct and the most useful answer. I think I found that once before it was in its current form but it looks really useful now. Thanks Andy!
Gary
~~~~
   In Christianity, a man may have only one wife.
   This is called Monotony.

Similar Messages

  • Compare two pdf files using adobe acrobat through command line

    Does anyone know how to compare two pdf files using adobe acrobat through command line. I want to do this via command line because we want to compare hundreds of file every day through some automated windows tasks.
    If command line option is not available in acrobat, then is it feasible to make use of acrobat javascript API to do this task?
    Any kind of help will be greatly.

    Command-line: Not possible.
    JavaScript: Possible, but very limited. Basically the only thing you can do is simulate clicking the Compare Documents button. The rest has to be done manually.
    However, it *might* be possible to automate this process a bit more using a plugin. Ask over at the Acrobat SDK forum for more information...

  • How to automatically generate a build file of the application from command-line

    Hi All
    How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?
    Thanks

    User, which jdev version do you use?
    I don't think you can do this. You can only create an ant build.xml from the project inside jdev.
    You can use ojdeploy to build the project.  This is the only method which will also make the necessary changes to the descriptors.
    Timo

  • How can pass the data from Command line  to  Applet?

    Hi,
    I am writing a chat application by using sockets. For that purpose I need to pass the parameter data from command line to Applets. Is there any method to receive command line args data in Applets? If so please tell me.

    Passing command line arguments to an applet is not possible, but for the same you can try using param tags, within your applet tag.
    For eg:
    <applet.......>
    <param name="xyz" value="abcdef">
    </applet>
    Within the applet's any method like init call <getParameter("xyz");>
    will return u the value.
    [email protected]

  • Firefox always start it self when windows start (around 5 - 6mb ram) with process explorer i got this [Path C:\Program Files\Mozilla Firefox\firefox.exe} [Command line "C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1"]

    firefox always start it self when windows start (firefos.exe around 5 - 6mb ram) with process explorer i got this
    [Path >> C:\Program Files\Mozilla Firefox\firefox.exe]
    [Command line >> "C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1"]
    is this a bug or a virus?? Thank you..
    == windows start

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • Adobe Reader importing XML data using command line reference

    Financial Gonverment in Poland prepared new VAT declarations, which are protected from changing.
    Restrictions summary is as follows: Printing, Commenting, Filling of form fields: Allowed; other restrictions are not allowed.
    I am able to export xml data, using Acrobat Reader, change it to have desired data and than import it and everything works fine. In ERP program I need to fill this document with data from the system. Normally we were doing this using FDF printing channel, but for this document it shows an error with bad user password. We were talking with people from government and only answer was that it is not possible to change document restrictions... We find out the way to create xml document, but we want it now to open from the command line (UNIX commands). But we only find the way to open pdf file with specified fdf file... But when I'm trying to open PDF document with specified fdf URL (url is linked to xml file... i don't know if it is proper... if not than how to create fdf file with desired xml?)
    Is there any possible to open a pdf with specified xml url to load to that PDF?

    I found the mistakes I made and I corrected them. The newly revised/corrected code is:
    USE OPENXMLtesting1
    GO
    With XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'C:\Temp\books.xml', SINGLE_BLOB) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    It worked: Results
         Contents
    1  <catalog><book.id="bk101"><author>Gambardella.M...
    If I clicked on this, I got a listing of the whole book.xml!!  I don't know what it means.  Please comment and respond.
    Thanks,
    Scott Chang

  • Creation date for schedule line

    Hi All,
    I have a scheduling agreement. MRP is generating the schedule lines properly. I want to know any table or any other way by which I can check the creation date for those MRP generated schedule lines.
    Regards,
    MHP.

    Dear Manish,
    As per my understanding from your question, you can use 'MD04-Stock/Requirement List' transaction for checking all the dates for planned order generated from MRP run.
    Regards,
    Hiren Ramani

  • Including files/resources using the ADT command line

    Hi all,
    I'm trying to get file support into my ADT helper tool before I release an update.  I am still having problems.
    According to the Adobe docs on the subject, the following commands can be used:
    -C "path/to/new/working/directory" [files and folders to include]
    -e [files and folders to include] [package directory to add these to]
    The following example works fine for me:
    // This changes the working directory to my audio resources folder, and then packages the file 'track.mp3' into the root folder of my application package.
    -C "C:\\resources\audio" "track.mp3"
    Hoiwever using -e option in any way generates an error:
    // This copies the file 'sfx.mp3' from the current working directory to the application package subdirectory 'lib'
    -e sfx.mp3 lib
    This also causes an error:
    // Change the working directory to resources/audio and then copy the file called 'sfx.mp3' to the 'lib' subfolder of the application package. Error.
    -C "C:\\resources\audio" -e sfx.mp3 lib
    The error in both cases is:
    File does not exist: sfx.mp3
    Any ideas how I can use the -e option?  Does the working directory not come in to it - do i always have to use an absolute path to my file?
    Thanks in advance,
    Peter

    Not sure if it will help in your situation, but I just include files by adding the filepath at the end of my adt command line (no -e or -c). Eg (included files or bolded):
    "C:\Program Files (x86)\Java\jre6\bin\java" -jar C:\Users\t.randall\Documents\AIRSDK\AIR_3.0\lib\adt.jar -package -target ipa-ad-hoc -storetype pkcs12 -keystore ..\..\Deployment\CareerBox.p12 -storepass pass -provisioning-profile ..\..\Deployment\CareerBox.mobileprovision ..\..\CareerBox.ipa CareerBox_iPhone-app.xml CareerBox_iPhone.swf AppIconsForPublish\Icon29x.png AppIconsForPublish\Icon57x.png AppIconsForPublish\[email protected] AppIconsForPublish\Icon512x.png AppIconsForPublish\Icon48x.png AppIconsForPublish\Icon72x.png Default.png [email protected] Default-Landscape~ipad.png Data\Cards.xml Data\CareerCards.xml

  • Repair files without creation date/time

    Hi
    I have some files that haven't a creation date/time. Is there any tools to repair that issue?
    For OS 9, there was Norton DiscDoctor, which coud find these files and repair that...

    Assuming these are files you created and have some idea of when they were created (you don't want to modify the date/time of system files, or files owned by another application such as the iTunes Music Library), you can use the Terminal command "touch" to give it a date. Touch is documented here:
    http://www.osxfaq.com/man/1/touch.ws
    The Terminal is in Applications -> Utilities -> Terminal
    When you want to refer to a file in Terminal, simply drag and drop it after entering the command that you want to execute on it, and then hit return once the file's path appears.

  • Enable AFP File Sharing via ARD through command line?

    Anyone know how to enable AFP file sharing on a remote Leopard client using ARD? I had been sending Unix Commands to do most of my changes, but cannot figure out how to enable AFP file sharing through a unix command. I've tried running /usr/sbin/AppleFileServer but that doesn't seem to do the trick. Any ideas?

    Howdy, Space Ranger!
    I'd recommend checking out the following documentation to get filesharing going without interrupting a current user.
    Apple Remote Desktop Administrator’s Guide
    http://images.apple.com/remotedesktop/pdf/ARD3_AdminGuide.pdf
    Page 145:
    Executing a Single UNIX Command
    Using the UNIX Command window, you can send a single command to the selected
    client computers. The command is executed using the bash shell.
    To execute a single UNIX command:
    1 Select a computer list in the Remote Desktop window.
    2 Select one or more computers in the selected computer list.
    3 Choose Manage > Send UNIX Command.
    4 Type or paste the command.
    If your command is a multi-line script, enter each command on its own line. If you want
    to break up a single-line command for better readability, use a backslash (\) to begin a
    new line.
    5 Set the permissions used to execute the command.
    You can choose the currently logged-in user, or choose the name of another user on
    the client computers.
    6 Click Send.
    For information regarding Terminal commands that can be useful (this is for 10.3 and later, but the relevant command does work in 10.8):
    Mac OS X Server Command-Line Administration
    http://manuals.info.apple.com/en_US/MacOSXSrvr10.3_CommandLineAdminGuide.pdf
    Page 65:
    Commands you can use to create share points and manage AFP, NFS, Windows (SMB), and FTP services in Mac OS X Server.
    Share Points
    You can use the sharing tool to list, create, and modify share points.
    Best regards,
    Allen

  • Compile REP file from RDF in the command line

    Is it possible to compile the REP file from an RDF in the command line? If so, do you have a simple example?

    Hi ,
    In 9i, it is rwconverter.exe. Please see Publishing Reports to the Web document available at OTN site.
    &lt;http://otn.oracle.com/docs/products/reports/content.html&gt; and to get more info on how to use rwconverter as command-line refer to "Appendix A" (which would provide information about command-line arguments.
    Hope this helps.
    Thanks,
    Vinod.

  • Can't send files to Trash from the command line

    Hello,
    as I'm programming in JAVA I must do all "special" operations as from the command line.
    I found several solutions but they don't work for me, at least not in Mavericks.
    I tried:
    osascript -e "tell app \"Finder\" to delete POSIX file \"/Users/me/totrash\""
    I got:
    21:60: execution error: Finder got an error: Handler can’t handle objects of this class. (-10010)
    I tried:
    echo "tell application \"Finder\" move POSIX file \"/Users/me/totrash\" to trash end tell | osascript
    I got:
    26:30: syntax error: Expected end of line but found command name. (-2741)
    Is there any working AppleScript way to send a file to the Trash Bin?
    Thanks in advance.
    ;JOOP!

    Near ....... I did not misspell 'me', I was in a different directory after all my experimenting .....
    Curse those who write cryptic error messages ...
    Bless those who still get it.
    So, thanks.
    ;JOOP!

  • How to compile and run java files on a mac using command line?

    can someone tell me or link me to some article on how to compile and run java files from command line on a mac? I have mac OS X leopard

    What do you mean by "where to put them" ? What do you want to put anywhere ?
    Have you read Peter's comment in brackets ? Perhaps you have a classpath problem ?
    Edited by: Michael_Knight on Aug 31, 2008 4:23 AM

  • "get every file whose creation date ..." error on Mac Intel

    Hello,
    since I have installed my MacPro the following statement stopped to work :
    set Aujourdhui to current date
    set Avant to (current date) - (300 * days)
    tell application "Finder"
    set laListe to get (every file of folder "Controles Asura:Archives_MVSTracks:" whose name contains "01" and creation date < Aujourdhui and creation date > Avant)
    end tell
    where "Controles Asura" is a shared volume.
    I get Finder error "can't make some data into the expected type"
    I tried using select instead of get unsuccessfully.
    Meanwhile the script runs well when performed on a folder situated on the Mac's hard drive.
    Regards,
    Didier.
    MacPro 2GB RAM   Mac OS X (10.4.8)  
    MacPro 2GB RAM   Mac OS X (10.4.8)  

    Hello John,
    I've tried your script but it doesn't work
    So I've started to simplify mine and progressively to add features to finally get back to the original script I posted :
    set laListe to get every file of folder "Controles Asura:Archives_MVSTracks:" whose name contains "01"
    works
    set laListe to get every file of folder "Controles Asura:Archives_MVSTracks:" (whose name contains "01") and (creation date < Aujourdhui)
    works
    set laListe to get every file of folder "Controles Asura:Archives_MVSTracks:" (whose name contains "01") and (creation date < Aujourdhui) and (creation date > Avant)
    works !!
    and finally
    set laListe to get (every file of folder "Controles Asura:Archives_MVSTracks:" whose name contains "01" and creation date < Aujourdhui and creation date > Avant)
    It works too !!
    Can you try this on your Mac ? Does the result of the script depends on the content of the target folder ? i.e. when there's a few files it works and when there's a lot it fails ?
    I can't figure out how this is possible ? Maybe I should call Mulder and Scully
    Regards,
    Didier.
    MacPro 2GB RAM Mac OS X (10.4.8)

  • Online Redolog file/group creation date

    How to check Online Redolog group/file creation date.

    Mano wrote:
    How to check Online Redolog group/file creation date.Given that the online redo logs are constantly re-used, I'd have to ask what problem do you think will be solved by knowing the creation date . . .
    Personally, I can't think of a more useless piece of information, so perhaps you'd get better information if you told us the real problem you are trying to solve.

Maybe you are looking for