How to search for a file and copy it to somewhere else in terminal

So basically how can I search for a file on my computer named "testingtesting.txt" and copy it to my desktop using terminal? I have very little experience in terminal, so I was going to try and use the mdfind command, then store that output as a variable, and use that variable as the source for the cp command, but I feel like there is probably a much simpler method. So basically how could I find a file named "testingtesting.txt", copy it, and paste it to my desktop using terminal.

Is there any particular reason that you must use Terminal?
You could just download the free EasyFind from the App Store and find the file quickly. Do whatever you wish with it.
Good luck,
Clinton

Similar Messages

  • Searching for missing files and damaged photo icon

    I am trying to view photos that I have viewed in this program numerous times before but now when I click on the photos, I get a message that says "searching for missing files". Sometimes, the photo appears with a red icon below it that resembles a wripped photo. Does this mean my photo has been damaged by the program?

    I too have been told to find them on my hard drive but still nothing comes up, I can find the picture name and then do a search, but nothing. I've tried several times and it just keeps saying seach for missing files not found. I can see my collection of pictures, but there blury and then when I try to click on them, it says searching for missing file and it gives me the file name, and then I've tried to go under my search and put that file name in and nothing comes up, I also got NO help from adobe and they want us to buy more products??? They could have warned us somehow on what happens if you move them or try and put them on disc, and that's what happen, I put some on disk or at least thought I did and then realized I didn't want to do that, so I hit the UNDUE and I guess it was so late or something, cuz I can see the pictues, just can't open them. I'm wandering if I need to have a expert see if he can get them off of Adobe, I really want the pictues I have graduation pictures on there and need them very much. Would love to have help from anybody. Please.
    Thank you
    K

  • How to search for a file?

    Hi I am currently using the below code to detect a file automaticaly in a thumbdrive. So currently I have to state the path directory to detect the particular file. Is there a way to search for the file in the thumbdrive using Java?
    public class Detect {
    public static void main(String[] args)
    File f = new File("f:\\");
    while (! f.exists())
    try { Thread.sleep(500); }
    catch (InterruptedException e) {}
    System.out.println("drive inserted!");
    }

    You'll need to recursively search through a top directory and all its subdirectories for all files. Here is a link how to do this.
    http://www.javapractices.com/Topic68.cjp
    You can search for all drives A through Z for the file (using something like new File("F:") and catching the exception if not found (and dont do anything with the exception). But exclude C and D drive since they are usually hard drives and take forever to search through. Also, you may want to use File.separator instead of '/" or '\' in your code since windowsXP uses one while Unix uses the other and you would want your code to be able to run on either operating system.
    Are you building a web page with this? if so, it will not work since your search code would be running on the server and not on the client's machine. Even if you were able to run it on the client machine via his browser, you cant because of security reasons (end users dont want to give you access to thier drives). If its a web page, look into file upload html tag called <input type="file". This allows the end-user to navigate on his machine to where the file is and download it without you having to search for it.
    If you writing an application instead of a web page, I think there is an applet you can use that will do the same thing as <input type="file".
    Searching though a directory structure isn't good since it takes too long for users t wait.

  • How to search for duplicate files?

    Is there a quick and easy way to search for duplicate files? (and other space hogs) I would like to do some hard drive spring cleaning. Trying to free up some space. Any suggestions? Thanks in advance, Carl

    Here are some apps to try:
    Singular, http://www.emeraldion.it/software/macosx/singular.html
    DupeCheck, http://dfay.fastmail.fm/dupecheck/ (uses the terminal suff and Spotlight under the hood)
    FileBuddy, http://www.skytag.com/filebuddy/

  • How to read the source file and copy the entire content to the target Database field

    Hi All,
    PI system extracts the actual business content from the incoming attachment file and copy the entire format to the target Database field which is a blob data type field.
    Sender Adapter: SOAP
    Receiver Adapter: JDBC
    JDBC Structure
    Can we achived the above requirement by using UDF with out Java Mapping?
    Thanks,
    Mahi.

    Ok, in this case yo can use the conten converion of the file adapter. Therefore you first need to create a Datatype in ESR with the required structure
    Then in your file adapter you need to use this datatype and its required fields:
    The Datatype then can be used as usual within you mapping.
    regards
    Christian

  • I need to know how to search for malware files, apple told me to contat you, I am getting popup and malicious warnings and need to talk with someone please

    I began getting popups for Microsoft malware alerts/Mackeeper zeobits/and othe ads. I am on a Mac OS 8.5.
    I downloaded virus protection, adware protection and ran them all and got nothing. Then I got a phoney call from the "microsoft technicians, so called Applecare and they told me what files to search for if it was Safari and suggested I contact Firefox. Below are the files we search for on my hard drive, but because I use Firefox
    they suggested I contact you as I am somewhat concerned. Can you help advise, thanks
    /Library/LaunchAgents/com.vsearch.agent.plist
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework

    Thanks, I am not sure if this is what you are asking for but here goes
    Application Basics
    Name: Firefox
    Version: 32.0.1
    User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:32.0) Gecko/20100101 Firefox/32.0
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Strict Pop-up Blocker
    Version: 0.2
    Enabled: true
    ID: jid1-P34HaABBBpOerQ@jetpack
    Graphics
    Device ID: 0x 166
    GPU Accelerated Windows: 1/1 OpenGL (OMTC)
    Vendor ID: 0x8086
    WebGL Renderer: Intel Inc. -- Intel HD Graphics 4000 OpenGL Engine
    windowLayerManagerRemote: true
    AzureCanvasBackend: quartz
    AzureContentBackend: quartz
    AzureFallbackCanvasBackend: none
    AzureSkiaAccelerated: 0
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.frecency_experiment: 1
    browser.history_expire_days.mirror: 180
    browser.places.importBookmarksHTML: false
    browser.places.importDefaults: false
    browser.places.leftPaneFolderId: -1
    browser.places.migratePostDataAnnotations: false
    browser.places.smartBookmarksVersion: 7
    browser.places.updateRecentTagsUri: false
    browser.search.useDBForOrder: true
    browser.sessionstore.restore_on_demand: false
    browser.sessionstore.upgradeBackup.latestBuildID: 20140911151253
    browser.startup.homepage: https://www.google.com/
    browser.startup.homepage_override.buildID: 20140911151253
    browser.startup.homepage_override.mstone: 32.0.1
    browser.tabs.loadInBackground: false
    browser.tabs.warnOnClose: false
    dom.mozApps.used: true
    dom.w3c_touch_events.expose: false
    extensions.lastAppVersion: 32.0.1
    gfx.blacklist.webgl.msaa: 4
    keyword.URL: http://search.freecause.com/search?fr=freecause&ourmark=3&type=63395&p=
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1410624969
    places.history.enabled: false
    places.history.expiration.transient_current_max_pages: 104858
    places.last_vacuum: 1352065358
    plugin.disable_full_page_plugin_for_types: application/vnd.fdf,application/vnd.adobe.xdp+xml,application/vnd.adobe.xfd+xml,application/pdf
    plugin.importedState: true
    print.macosx.pagesetup-2: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBsaXN0IFBVQkxJQyAiLS8vQXBwbGUvL0RURCBQTElTVCAxLjAvL0VO
    print.print_bgcolor: false
    print.print_bgimages: false
    print.print_colorspace:
    print.print_command:
    print.print_downloadfonts: false
    print.print_duplex: 1
    print.print_evenpages: true
    print.print_in_color: true
    print.print_margin_bottom: 0.5
    print.print_margin_left: 0.5
    print.print_margin_right: 0.5
    print.print_margin_top: 0.5
    print.print_oddpages: true
    print.print_orientation: 0
    print.print_page_delay: 50
    print.print_pagedelay: 500
    print.print_paper_data: 0
    print.print_paper_height: 11.00
    print.print_paper_name:
    print.print_paper_size_type: 1
    print.print_paper_size_unit: 0
    print.print_paper_width: 8.50
    print.print_plex_name:
    print.print_printer:
    print.print_resolution: 0
    print.print_resolution_name:
    print.print_reversed: false
    print.print_scaling: 1.00
    print.print_shrink_to_fit: true
    print.print_to_file: false
    print.print_unwriteable_margin_bottom: 56
    print.print_unwriteable_margin_left: 25
    print.print_unwriteable_margin_right: 25
    print.print_unwriteable_margin_top: 25
    privacy.clearOnShutdown.cache: false
    privacy.clearOnShutdown.cookies: false
    privacy.clearOnShutdown.downloads: false
    privacy.clearOnShutdown.formdata: false
    privacy.clearOnShutdown.sessions: false
    privacy.cpd.cache: false
    privacy.cpd.cookies: false
    privacy.cpd.formdata: false
    privacy.cpd.sessions: false
    privacy.donottrackheader.enabled: true
    privacy.item.cache: false
    privacy.item.downloads: false
    privacy.item.formdata: false
    privacy.item.sessions: false
    privacy.sanitize.migrateFx3Prefs: true
    privacy.sanitize.timeSpan: 0
    security.disable_button.openCertManager: false
    security.disable_button.openDeviceManager: false
    security.warn_viewing_mixed: false
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1409681987
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.6
    Version in use: 4.10.6
    NSS
    Expected minimum version: 3.16.4 Basic ECC
    Version in use: 3.16.4 Basic ECC
    NSSSMIME
    Expected minimum version: 3.16.4 Basic ECC
    Version in use: 3.16.4 Basic ECC
    NSSSSL
    Expected minimum version: 3.16.4 Basic ECC
    Version in use: 3.16.4 Basic ECC
    NSSUTIL
    Expected minimum version: 3.16.4
    Version in use: 3.16.4
    Experimental Features
    ---------------------

  • How to SEARCH for specific file TYPES, e.g. PDF?

    If I know the title has in it "resume" and I know it's a PDF, how do you search for all PDF files that have the word "resume" in the title?
    AND..
    How would you search all PDF files that had the word "supervisor" inside the document?
    Thanks

    Command F should do it. Once the search window appears, you should see a drop down box headed kind and next to it one headed any. Select PDF from the any one. Click the plus button, and another field will appear and you can see again more drop down boxes. You just want to set these up so you end up with name and contains, you can then add your text to the remaining field.
    Also see [this|http://apps.tempel.org/FindAnyFile/index.html]
    Message was edited by: gumsie

  • How to search for all files w Metadata mismatch?

    I Upgraded recently from LR2.6 to 3.3.
    Many of my images have an Exclamation Mark on them, following the upgrade, informing me that there is a Metadata Mismatch...
    When I click on it I get this Dialogue box:
    Firstly I think LR developers are playing with potentially important information with a lack of care and consideration. I looked at the metadata in 'File Info' in Photoshop before clicking anything: the creation date was the date the file was created and much of the camera data was missing. After I clicked Overwrite Settings all the original data was back on the file. I have no idea how this came to pass exactly, but it shows metadata is an easily lost thing.
    If Adobe care about their customers I would think they would make it more clear what was at stake here!
    Secondly I would like to know if there is a way to search for all images with this issue to save me having to go through and do it one by one, possibly thousands of times?
    Thnaks Peter

    areohbee wrote:
    Beat,
    Please share the SQL statement.
    select    ''    
             ,LibraryRootFolder.absolutePath || LibraryFolder.pathFromRoot || LibraryFile.lc_idx_filename    as    fullFileName
             ,Image.sidecarStatus
             ,AdditionalMetadata.externalXmpIsDirty
        from      Adobe_images                 as    Image
                 ,AgLibraryFile                as    LibraryFile
                 ,AgLibraryFolder              as    LibraryFolder
                 ,AgLibraryRootFolder          as    LibraryRootFolder
                 ,Adobe_AdditionalMetadata     as    AdditionalMetadata
        where     Image.rootFile                =    LibraryFile.id_local
          and     LibraryFile.Folder            =    LibraryFolder.id_local
          and     LibraryFolder.rootFolder      =    LibraryRootFolder.id_local
          and     AdditionalMetadata.image      =    Image.id_local
          and    (Image.sidecarStatus            not in    (0, 7)
           or     AdditionalMetaData.externalXmpIsDirty     >     0)
        order by    fullFileName
    I am not sure what the meaning of different values in column sidecarStatus and externalXmpIsDirty mean. This is what I've found out by trial and error:
    sideCarStatus = 1 seems to mean "Settings have changed in Catalog compared to XMP"
    sideCarStatus = 7 seems to be OK
    externalXmpIsDirty = 1 seems to mean "Settings have changed in XMP compared to Catalog"
    sideCarStatus = 1 AND externalXmpIsDirty = 1seems to be a Metadata Conflict
    The meaning of sideCarStatus > 1 is unknown to me
    I usually run the query and then look at the single images reported in LR.
    IMHO, this metadata matching is one of the weaker points in LR. I have encountered several conflict situations where I can be 100% sure I have not changed anything on the image outside of LR, and I have "Automatically write Changes to XMP" active. So a conflict should never arise.
    Beat Gossweiler
    Switzerland

  • "Using the Filter HUD to Search for Referenced Files" (and "Locate Referenced Files")

    I am trying to follow the Help Documentation item "Using the Filter HUD to Search for Referenced Master" (not sure if there is a way to post a URL to this) and I am not seeing what it is telling me to do.
    I am going to Edit > Find and it is telling me to "Click the Filter HUD button beside the search field in the Browser". Is this referring to a browser in the Aperture UI or is this in the Filter HUD display? I am not finding this.
    Also, it saying that in the Filter HUD I should "choose File Status from the Add Filter pop-up menu, and select the 'File Status' checkbox." and I am not seeing this either. Does anyone know where this is at?
    Lastly, I see that there is a command called File > Locate Referenced Files and when I run this I get a "No Referenced Files in the /current/ selection. I have realized that I don't quite understand whether I am running this search for a specific Project and/or whether I have to make a specific selection in the left hand pane when I run a FILTER HUD or whether this automatically defaults to search the whole database. Does it matter what I have selected in the current Browser View when I run either of these commands?
    Thanks for any help in my getting this working better for me.

    hotwheels 22 wrote:
    I am trying to follow the Help Documentation item "Using the Filter HUD to Search for Referenced Master" (not sure if there is a way to post a URL to this) and I am not seeing what it is telling me to do.  1
    I am going to Edit > Find and it is telling me to "Click the Filter HUD button beside the search field in the Browser". Is this referring to a browser in the Aperture UI or is this in the Filter HUD display? I am not finding this. 2
    Also, it saying that in the Filter HUD I should "choose File Status from the Add Filter pop-up menu, and select the 'File Status' checkbox." and I am not seeing this either. Does anyone know where this is at?  3
    Lastly, I see that there is a command called File > Locate Referenced Files and when I run this I get a "No Referenced Files in the /current/ selection. I have realized that I don't quite understand whether I am running this search for a specific Project and/or whether I have to make a specific selection {4}  in the left hand pane {5} when I run a FILTER HUD or whether this automatically defaults to search the whole database. Does it matter what I have selected in the current Browser View when I run {6} either of these commands? 7
    Thanks for any help in my getting this working better for me.
    1.  Just copy and paste the URL from the on-line User Manual.  Very helpful.  Are you on this page?
    2.  From the above-linked page:
    Show the Filter HUD by doing one of the following:
    Choose Edit > Find (or press Command-F).
    Click the Filter HUD button beside the search field in the Browser.
    The instructions specify ONE of the following.  Your question indicates to me that you are trying to do both.
    3.  The User Manual has used the wrong term here.  It should say "Choose 'File Status' from the 'Add RULE' pop-up menu."
    4.  The command -- like all commands? -- works on the currently selected Images.  On the same page in the User Manual it says:
    You can select a group of images in the Browser and Aperture can show a list of the referenced images within the selection, including information about where the masters are located. {Emphasis mine.}
    5.  The Aperture workspace is highly configurable.  I don't know what you mean by "the left-hand pane".  Of what?
    6.  Yes.  Of course it matters.  At some point in the 80's when the GUI became standard computers standardized on the "Noun→Verb" syntax:  Select object(s), select command(s).
    7.  Not sure what the second command to which your refer is.

  • How to search for a field and its value in an internal table

    Hi,
    I want to search for a field(which i dont know whether it exists or not) in an internal table and on finding that field, I have to update the value of that field. How do I do it? I think its similar to how SEARCH works but i wanted to know the internal table eqivalent of it.

    Hi Sujay,
    this code will help ful to u, just gi through it,
    TABLES : KNA1,VBAK,VBAP.
    ***********INTERNAL TABLE DECLARATIONS****************
    DATA : IT_KNA1 TYPE TABLE OF KNA1,
           WA_KNA1 TYPE KNA1.
    DATA : IT_VBAK TYPE TABLE OF VBAK,
           WA_VBAK TYPE VBAK.
    DATA : IT_VBAP TYPE TABLE OF VBAP,
           WA_VBAP TYPE VBAP.
    START-OF-SELECTION.
      SELECT * FROM KNA1
      INTO TABLE IT_KNA1
      WHERE KUNNR = P_CUST.
      IF NOT IT_KNA1 IS INITIAL.
        SELECT * FROM VBAK
        INTO TABLE IT_VBAK
        FOR ALL ENTRIES IN IT_KNA1
        WHERE KUNNR = IT_KNA1-KUNNR.
        IF NOT IT_VBAK IS INITIAL.
          SELECT * FROM VBAP
          INTO TABLE IT_VBAP
          FOR ALL ENTRIES IN IT_VBAK
          WHERE VBELN = IT_VBAK-VBELN.
        ELSE.
          WRITE : / 'Customer',P_CUST,'does not exist ......'.
        ENDIF.
      ELSE.
        WRITE: / 'sales order does not exist for',P_CUST.
      ENDIF.
    Rewards points plz if useful
    Ganesh.

  • Searching for a file and returning location?

    Hello,
    Using flex 4, and creating an AIR desktop app for windows only, can you have a function search for a known file name and return the location?
    I cannot find anything about this, only an example for mac.

    HI Bethany,
    This may work in Numbers for iOS:
    Table 1 is your data table, with an index column (K) added.
    Your appointments for one specific date are shown on Table 2.
    Table 1 contains one formula, entered in K2 and filled down the rest of that column.
    K2: =IFERROR(IF(MATCH(Table 2 :: $B$1,B2:J2,0),MAX($K$1:K1)+1,""),"")
    The formula creates a serial number for each row containing the search date entered in Tble 2::B1, and leaves other rows 'blank'.
    Table 2 contains one formula, entered in B2 and filled right:
    B2: =IF(COLUMN()-1>MAX(Table 1 :: $K),"",OFFSET(Table 1 :: $A$1,COLUMN()-1,0))
    You will need a column for each potential appointment. The table as shown has a maximum of four. Add columns for more.
    Regards,
    Barry

  • How to search for a file faster?

    Hi guys,
    Say I got 10 millions files. in order to make the searching faster, should I put all the file inside a single folder or categorize the file under a few directories like c:\a\1234\. TIA !
    regards,
    Mark

    >
    Say I got 10 millions files. in order to make the
    he searching faster, should I put all the file inside
    a single folder or categorize the file under a few
    directories like c:\a\1234\. TIA !
    Whether you are searching for a particular file or searching within all the files then putting 10,000,000 file in a single directory looks (to me) to be silly!
    If you just want to find a particular file then why not build an index (say in a simple database). If you want to search within all the files then some directory tree structure will stop Java having to load into memory the whole of your directory content.

  • How to search for a file at application server?

    Hi,
    I need to choose one file for further processing from the directory, located into 'WORK' directory at application server. As far as I see, class CL_GUI_FRONTEND_SERVICES and FILE_OPEN_DIALOG woudn't help me - it's a 'FRONTEND_SERVICES'.... and work with directories at presentation server.
    The requirement is that the user has no file sharing from his local PC to the mentioned directory at application server - this directory is visible only in the scope of the application server. I need something as flexible as CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG, if exist.
    How can I achieve this?
    Any help would be highly appreciated.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Thanks to all contributors!
    After short testing I found the following:
    1. F4_DXFILENAME_TOPRECURSION is not what I was looking for - it doesn;t behave as expected.
    2. FM EPS_GET_DIRECTORY_LISTING would help if I need the result into an internal table (thsi would be a case too), but it doesn;t prompt for selection. Helpful, anyway.
    3. /SAPDMC/LSM_F4_SERVER_FILE is the closest match to the requirements.
    Thanks to all.
    Regards,
    Ivaylo
    P.S. Abhijit Dani - sorry, you were the second with the same reply, I rewarded the 1st answer as very helpful.

  • How to search for movie files on harddrive?

    Saw today in Lions new layout under "This Computer" that my harddrive contains 147GB (out of 320 GB) of movies.
    Is there any clever way to track those movie files.
    The movie files are probably spread all over the computer. I have for instace made a great deal of Final Cut clips
    that tend to be saved in several copies spread in different folders. Besides that, I probably have film and film clips in every imaginable file format that have been saved and forgotten through the years :-) (my iMac is from -07) 
    Any clever tips highly appreciated - Need more space!!
    /Friss

    The Finder can do this for you.
    Just open a Finder window and hit Command-F
    Then, in the search bar set the 'Kind' to 'Movie'.
    Done. It'll find all the movie files on your disk which you can then organize as you see fit.

  • Spotlight: How to search for specific file types?

    Hi. I'm looking for bookmarks that may contain a particular word. Is there a way to filter my spotlight (or finder) searches just for a particular file type? I know you can sort results by file type, but it's rather just filter in the first place...

    Command F should do it. Once the search window appears, you should see a drop down box headed kind and next to it one headed any. Select PDF from the any one. Click the plus button, and another field will appear and you can see again more drop down boxes. You just want to set these up so you end up with name and contains, you can then add your text to the remaining field.
    Also see [this|http://apps.tempel.org/FindAnyFile/index.html]
    Message was edited by: gumsie

Maybe you are looking for

  • Exchange email will not work after IOS 5.1.1 update

    My company exchange email was working perfectly, but suddenly stop , i don't know is  due of the iPhone upgrade or as well my company upgrade to exchange to 2010 When i enter my account it's verifying my credentiality, but can't receive or send email

  • How to know who has created a particular record in the data base table

    Hi All... Can any one tell me how to track the information about who has entered the records in to the data base table.... Thanks in advance...

  • Automatic Intercompany Payment/Collection postings Issue

    Hi All, We have an intercompany scenario where we need to make actual payments between two company codes: Both the Company Codes are in SAP and in Same Client. 1) Intercompany receivables in company code A matching payables in company code B. 2) Paym

  • System Preferences will Crash then Load

    I have been getting this issue for some time and have been trying many troubleshoots to fix this issue. Here is a step by step process of what happens... 1. Boot Up Computer 2. Open System Preferences 3. After 3 Minutes of trying to open, it crashes.

  • CC bug ?

    // BUS ERROR (NON-ALIGNED ADDRESS // compile using following //           CC -xtarget=native -xarch=v9 -g alligned.c //           CC Version = Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 // The following program dumps core when build with above comman