Terminal: how do I list the contents of directories for specific files?

I want list all quicktime movies under a specific directory (and then output this into a file)
When I do this: ls -Rl
This list everything under the folder and subdirectories - the 'l' flag I used to get just file names
When I do this: ls -Rl *.MOV
Nothing is found
I've tried: ls -Rl *MOV
I'm sure I'm missing something fundamental
Thanks
Omar

Use a command such as:
ls ~/Desktop/Archive/*.mov
Case matters when doing this; using MOV and mov will produce different results. This doesn't work if done with the R flag.
(87610)

Similar Messages

  • List the contents of jar, ear, war files

    Hi All,
    It has been several years since I have worked in java and now I am trying to get caught back up :-).
    My question is: Is there a standard utility that can dump/list the contents of the packaging files: jar, ear, war?
    Thanks in advance!

    You can use winzip. OR you can use the jar command provided in JDK.
    jar -tvf <<your archive (jar, war, ear)>>

  • How do I obtain the full path string for my file?

    Many Mac applications are particularly bad at guessing what folder I want to grab a file from.  As a result, I waste a great deal of time fishing all through my directory tree in order to put and take my files in and from the right location.  It does seem to be better is some applications but still the nuisance is an issue.  Of course in Windows this can happen too except there I have a workaround to help out the foolish applications.  I can copy the full literal path to the clipboard from Explorer.  Then when the file access dialog comes up I can paste the full literal path ahead of the filename and snap to the correct folder.  On my mac, I have had mixed success approximating this strategy.  Sometimes, if the target folder isn't empty, I can use the Finder to browse to the target folder and open the Get Info dialog for a file and copy the full path from within that dialog.  This does not work though when the folder is empty and Mac does not support the create new text file on the fly feature.  Furthermore, I have noticed some strange behavior even when I do have the full path copied.  One such example is using TextEdit, pasting this full path has resulted in the application using the full path as a really long filename for the new file which still resides in the folder the application incorrectly assumed.
    There is a list box in most Mac file access dialogs with _some_ of the recent folders I accessed listed for quick selection but nine times out for ten the folder I just came from isn't among them.  That detail really surprises me.  Do regular Mac users have habits that prevent problems like this, or is there a better way to _bank_ a literal folder location I know I'll need to use soon and often, or do I just need to get used to fishing for folders during file access?

    Welcome to Apple Support Communities. Most of us are users here.
    Create folders and drag those 'frequently used' folders to the left-hand FAVORITES column/sidebar in Finder.
    Then just drag your files to the destination folders, or click on them to select them as destinations from your applications.
    When you no longer need these folders, right-click to remove them from the FAVORITES sidebar.
    They'll still be in the original location where they were created, just no longer visible in the sidebar.
    Another thing to note is that the full path of your current destination is shown at the bottom of the screen in Finder. In this case Macintosh HD, Users, (Home folder name), Desktop.

  • How can you access the content behind an Animate .oam file in Muse?

    I have an animation to open doors at the bottom of a parallax scroll, but once the doors open, I cannot click on any of the buttons in my "room" that were set up in Muse. Anyone have any ideas of how to fix this? I am using CC for both programs.
    par·al·lax: The effect whereby the position or direction of an object appears to differ when viewed from different positions, e.g., through the viewfinder and the lens of a camera
    More »

    Hello,
    In case .oam file is placed above the content, then I am afraid user would not be able to click on the content which is behind the animation.
    There are two workarounds that you have. Either have the content (Buttons behind the open door) placed inside the Animation itself so that users can click on it.
    Or you can have transparent Rectangles (boxes) placed in front of the animation and apply links to them. it should appear like the buttons behind the animation are clickable however it should be these transparent Boxes which would be clickable and are placed above the Buttons and the animation (on the top layer).
    Hope this helps.
    Regards,
    Sachin

  • How do I change the default save location for new files in Pages back from iCloud to my Documents folder?

    I just upgraded OSX to Mountain Lion and Pages to 4.2, and because OSX is syncing with my iCloud account, when I go to save a new file in Pages it defaults to try to save to my iCloud account rather than giving me the folder structure on my hard-drive that I prefer. It requires two extra steps to save to the proper place in my Documents folder on my hard drive.
    Is there a way to reset the default so that when I go to save a new file, the folder structure opens to the last saved folder (like it does in other non-iCloud applications) rather than defaulting to my iCloud, and to do it without just removing documents from my iCloud account entirely?
    I checked the Preferences for both Pages and iCloud and found nothing about this.

    What I meant is turn off Documents and Data in iCloud in OS X. Keep it on on your iOS devices. iCloud will sync documents between the iOS devices and make them available on the iCloud web site, but it won't mess up iWorks' open and save dialog boxes. It also won't assume that you want all your documents in iCloud, which I think is undesirable anyway.
    Keep iOS and OS X separate, and use the web site to move files between the two as necessary.
    iOS iWork is different from OS X iWork. There are fewer fonts on an iOS device. iOS iWork programs have slightly different feature sets than OS X iWork programs, and the file formats are different. iCloud automatically converts the file format when necessary, but if you make a habit of saving things directly to iCloud, you are limited to the lowest common denominator between the two versions of iWorks. So why would anyone want iWork on the Mac to open and save documents on iCloud by default?
    If you want to store files in the cloud and sync them on your Macs, SugarSync is a much better solution. It lets you choose your sync folders, it doesn't make you reorganize your files, it lets you sync all file types, it doesn't convert files to a different format and back, and it stores everything in the cloud, too. Just the simle act of saving a file backs it up and syncs it. I wouldn't live without it. iCloud is best with iTunes purchases and synchronizing Mac settings and iOS files; I woudln't live without it. The two make an unbeatable combination.

  • How-to list the contents of a Data Pump Export file?

    How can I list the contents of a 10gR2 Data Pump Export file? I'm looking at the Syntax Diagram for Data Pump Import and can't see a list-only option.
    Regards,
    Al Malin

    use the parameter SQLFILE in the impdp which writes all the sql ddl's to the specified file.
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm
    SQLFILE
    Default: none
    Purpose
    Specifies a file into which all of the SQL DDL that Import would have executed, based on other parameters, is written.
    Syntax and Description
    SQLFILE=[directory_object:]file_name
    The file_name specifies where the import job will write the DDL that would be executed during the job. The SQL is not actually executed, and the target system remains unchanged. The file is written to the directory object specified in the DIRECTORY parameter, unless another directory_object is explicitly specified here. Any existing file that has a name matching the one specified with this parameter is overwritten.
    Note that passwords are not included in the SQL file. For example, if a CONNECT statement is part of the DDL that was executed, it will be replaced by a comment with only the schema name shown. In the following example, the dashes indicate that a comment follows, and the hr schema name is shown, but not the password.
    -- CONNECT hr
    Therefore, before you can execute the SQL file, you must edit it by removing the dashes indicating a comment and adding the password for the hr schema (in this case, the password is also hr), as follows:
    CONNECT hr/hr
    For Streams and other Oracle database options, anonymous PL/SQL blocks may appear within the SQLFILE output. They should not be executed directly.
    Example
    The following is an example of using the SQLFILE parameter. You can create the expfull.dmp dump file used in this example by running the example provided for the Export FULL parameter. See FULL.
    impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmpSQLFILE=dpump_dir2:expfull.sql
    A SQL file named expfull.sql is written to dpump_dir2.
    Message was edited by:
    Ranga
    Message was edited by:
    Ranga

  • How to change the Content-Transfer-Encoding for the fmddataa.fmd from base

    Dear all,
       When I using this SO_DOCUMENT_REPOSITORY_MANAGERto send email,I find the fmddata.fmd  file have been changed  to binary file attachment. I don't hope so.any one have good idea to avoid this case occur?
      Can you tell me how to change the Content-Transfer-Encoding for the fmddata.fmd from base64 to quoted-printable.  The quoted-printable is the Content-Transfer-Encoding for text file with extension .txt
    Best Regards,
    Merry

    Thank you

  • How to determine the creation date/time for a file?

    The important operating systems maintain both a creation date/time and last modified date/time for files. But in the File class there is only a lastModified() method. How does one determine the creation date/time for a file?

    As far as i know, there is no way to know creation time, since it is a OS dependant information.

  • How to display the Get info window for a file or folder

    Hello,
    How can I display the Get Info window for a file or folder using Applescript - instead of selecting it in the finder and using Command-I ?
    Thanks.
    lenpartico

    The item property that the Get Info was opened for is read only, so it doesn't look like you can just throw a file path at it. You could do something like telling the Finder to reveal the item, then keystroke the command, e.g.:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder"
    reveal "Path:to:your:file"
    activate
    end tell
    tell application "System Events" to keystroke "i" using {command down}
    </pre>
    ... but this doesn't seem to be much different than the regular method. There are other methods to get various information, what are you wanting to do?
    Edit:
    Hmmm, I could have sworn (I do a lot of that these days) I tried Hiroto's method, but that does work. It still seems to be a roundabout way of doing something though.
    Message was edited by: red_menace

  • How to list the contents of an OSX directory, and output to text file?

    hello there any hints with any known program that does following
    I have recorded my music directory to DVD and now i would like to make an .txt file what the dvd contains...cos its way of hand to write all 100xx files by hand...
    How to list the contents of an OSX directory, and output to text file?
    any prog that does that? any hints?
    best regards

    This script makes a hierarchical file listing all files in a folder and subfolder:
    Click here to launch Script Editor.
    choose folder with prompt "Choose a folder to process..." returning theFolder
    set theName to name of (info for theFolder)
    set thepath to quoted form of POSIX path of theFolder
    set currentIndex to theFolder as string
    do shell script "ls -R " & thepath returning theDir
    set theDirList to every paragraph of theDir
    set newList to {"Contents of folder \"" & theName & "\"" & return & thepath & return & return}
    set theFilePrefix to ""
    repeat with i from 1 to count of theDirList
    set theLine to item i of theDirList
    set my text item delimiters to "/"
    set theMarker to count of text items of thepath
    set theCount to count of text items of theLine
    set currentFolder to text item -1 of theLine
    set theFolderPrefix to ""
    if theCount is greater than theMarker then
    set theNestIndex to theCount - theMarker
    set theTally to -1
    set theFilePrefix to ""
    set theSuffix to ""
    repeat theNestIndex times
    set theFolderPrefix to theFolderPrefix & tab
    set theFilePrefix to theFilePrefix & tab
    if theTally is -1 then
    set theSuffix to text item theTally of theLine & theSuffix
    else
    set theSuffix to text item theTally of theLine & ":" & theSuffix
    end if
    set currentIndex to "" & theFolder & theSuffix
    set theTally to theTally - 1
    end repeat
    end if
    set my text item delimiters to ""
    if theLine is not "" then
    if word 1 of theLine is "Volumes" then
    set end of newList to theFolderPrefix & "Folder: > " & currentFolder & return
    else
    try
    if not folder of (info for alias (currentIndex & theLine & ":")) then
    set end of newList to theFilePrefix & tab & tab & tab & "> " & theLine & return
    end if
    end try
    end if
    end if
    end repeat
    open for access file ((path to desktop as string) & "Contents of folder- " & theName & ".txt") ¬
    with write permission returning theFile
    write (newList as string) to theFile
    close access theFile

  • How to list the content of a URL

    Hi All,
    I am wondering whether the method of listing the content of a URL, is the same as listing a directory on a local system? The listing of a local directory can be achieved with the following code for example:
        File dir = new File("directoryName");
        String[] children = dir.list();
        if (children == null) {
            // Either dir does not exist or is not a directory
        } else {
            for (int i=0; i<children.length; i++) {
                // Get filename of file or directory
                String filename = children;
    // It is also possible to filter the list of returned files.
    // This example does not return any files that start with `.'.
    FilenameFilter filter = new FilenameFilter() {
    public boolean accept(File dir, String name) {
    return !name.startsWith(".");
    children = dir.list(filter);
    // The list of files can also be retrieved as File objects
    File[] files = dir.listFiles();
    // This filter only returns directories
    FileFilter fileFilter = new FileFilter() {
    public boolean accept(File file) {
    return file.isDirectory();
    files = dir.listFiles(fileFilter);However, I am not sure whether it is as simple as replacing "directoryName" with "http://www.abc.com/photos" when using java.net.*.
    I am automating a task to download all photos in a gallery at certain website.
    Any assistance would be very much appreciated.
    Many thanks,
    Jack                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi paulcw, JoachimSauer,
    Thanks for answering to this post.
    I am only trying to automate some downloads of quite a of photo albums of relatives overseas. It only takes a few weddings to take hours to download. Moreover, the reason for having made the photos on the Internet so that the relevant parties can do their own download at their convenience for free as opposed to costing the individual to spend time and money on burn dozens of DVDs... After all, this is information age we are living in.
    Lastly, I am hoping to use the getContentType() method to determine the exact type of image such as jpg, gif, etc but doesn't appears that it is doing the right job. Is there any other way to do this instead?
    Thanks a lot again,
    Jack

  • How can I see the contents of the Firefox cache?

    How can I view the contents of the Firefox cache?

    Type '''about:cache''' in the URL bar and hit Enter.
    Memory cache device - <u>List Cache entries</u>

  • How can i see the content of the cache server 2 ?

    How can i see the content of the cache server 2 ?

    Caching server is backed by an sqlite database.  If you want to see what you currently have downloaded, you can glean some information by accessing the database.  Use this command to connect to the database:
    sudo sqlite3 /Library/Server/Caching/Data/AssetInfo.db
    Once connected, you can use .tables to see the tables in the database but the one with the most information appears to be ZASSET.  Use:
       select * from ZASSET;
    To list the current contents.  You will get a series of records similar to the following:
    26|1|5|0|868991341|402440412.42114|402507221.969799|ffaf18a45cd5dd5e853233629036 5767|30B9108D-ABE4-4061-A2E0-42E91301249B|Fri, 06 Sep 2013 18:21:34 GMT|/content/downloads/14/11/091-9722/ognnjd4fno85m4pbapjtnv23b7rf1mkufx/OSXUpd Combo10.8.5.pkg|
    Note that the final value is a human recognizable name of the package.  However, you may also see items like this:
    125|1|4|0|11622676|406739736.508118|406739736.508125|4f1f9b08b32f9f6211e4569604b 1efef|481BF3D9-99BB-415F-ADB6-860EDD24B08E|Thu, 14 Nov 2013 10:24:30 GMT|/us/r1000/032/Purple6/v4/37/a3/d2/37a3d2f7-2594-8224-7eda-712f17a3fd8b/mzps 6227198657217312566.D2.pd.ipa|
    This is an iOS application.  There is no real way that I know of yet to match the package name (mzps6227198657217312566.D2.pd.ipa) to a product name.
    When finished, type .quit
    R-
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available on the iBooks Store

  • How can I view the content within the message without having to double click on the message. I used to be able to see content of the message alongside it .

    How can I view the content of the message without having to double click on it; I used to be able to see content of the message next to it .

    Is this in Mail?
    You can (I do all the time). The oreview window can be resized by dragging the message list window border - you might accidentally have closed it up

  • I used Time Machine to recover my Pictures folder. This created a folder called Pictures (original) but I cannot open it.  There is a do not enter roadsign, red disk and white bar on it.  How can I see the contents?

    I used Time Machine to recover my Pictures folder. This created a folder called Pictures (original) but I cannot open it.  There is a do not enter roadsign, red disk and white bar on it.  How can I see the contents?

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

Maybe you are looking for