Copy directory but only copy filenames, not the contents

I used a command-line program before that copied a directory including its sub-directories and files but it did not copy the contents of the files, just the names. Does anyone know what the name of the program might have been or a way to do this?
Last edited by anitac (2013-08-26 14:32:49)

djgera wrote:cp -a --attributes-only ...
Fixed that for ya.
Anyway, thanks. I never would have thought to look to cp for this.

Similar Messages

  • How do I paste a copied filename into the save as window?

    I am used to copying filenames into the save as window ... it is more accurate and mroe efficient than typing them.  When I upgraded to CS1 and CS3, I can not do this, either on Snow Leopard or on Win7.  How do I regain the ability to do this?

    Copy and paste works just fine in the save dialog.
    And the save dialog is provided by the OS, so if you have any third party utilities that modify the behavior of the save dialog - those could cause problems.
    Also, CS1 and CS3 are both quite a few years out of date.
    Are you sure you have the right version numbers?

  • TS1814 Most of the songs on my iPod Classic no longer dshow up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Th

    Most of the songs on my iPod Classic no longer show up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Thanks you for any help.

    See Empty/corrupt iTunes library after upgrade/crash or
    Recover your iTunes library from your iPod or iOS device.
    tt2

  • Videos (eg, YouTube, New York Times) do not work on my Retina Display MacBook Pro.  There is sound but only empty space where the video should be.  Help?

    Videos (eg, YouTube, New York Times) do not work on my Retina Display MacBook Pro.  There is sound but only empty space where the video should be.  Help?

    Did you install Flash Player?
    http://get.adobe.com/flashplayer/

  • HT1208 Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Use it the same way as previously.
    ctrl B shows the menus.
    ctrl S shows the sidebar.
    What else do you need help with?

  • My incoming emails only show the header and not the content

    My incoming emails on my ipad only show the header when I open them, not the content or any attachments.  This has not always been the case - I used to receive them normally.  In the list of incoming emails, the first few words of the text appear, but when I open them, they are blank.  Any suggestions?

    Try a reset:
    1. Hold the Sleep and Home button down (together)
    2. For about 10 seconds
    3. Until you see the Apple logo (very important)
    4. Ignore the red slider

  • Every time i go on the internet the sound starts messing up but only when connected to the internet.

    1- Product name and number: Compaq CQ57 302EA 4GB
    2- Operating system installed: Google Chrome, Windows 7 (was already onlaptop when got new from store)
    3- Error Message: From bullgaurd saying I have a virus but have sorted the problem and there is no virus no longer.
    4- Any changes made to your system before the issue occurred: I have installed games and music of the internet.
    5- In the subject title, include a brief, specific description of the problem, and your product information: Compaq Laptop. Every time i go on the internet the sound starts messing up but only when connected to the internet what can i do to fix this problem?

    #You need to check your home page settings if the pages open immediately everytime you start Firefox.
    #Sometimes, things that you download and install will change your home page. When installing anything, be observant, be sure to look for check boxes during install of anything that allows you to un-check items and not install toolbars and/or make changes to your home page.
    #Firefox can have multiple home pages separated by the "|" keyboard character.
    #It sounds as though your home page setting might be: "When Firefox starts: Show my windows and tabs from last time"
    #See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]

  • I started my update for ios 5.1for iPhone 4s and cancelled it have way through now it says it's downloaded but really it's not the update is still there and when I try to update it it says unable to install update : an error occurred installing iOS 5.1  ?

    I started my update for ios 5.1for iPhone 4s and cancelled it have way through now it says it's downloaded but really it's not the update is still there and when I try to update it it says unable to install update : an error occurred installing iOS 5.1  ?

    See Here... Unable to Update or Restore...
    http://support.apple.com/kb/HT1808

  • I can see my external Hard Drive on AEBS and the folders on it but not the contents of the folders

    I have a MacBook Pro running OS X 10.7.2 connected to my wireless and wired network through my AEBS.  Connected through a USB hub I have a printer and Digital Research external HDD.  When I click on the shared folder I see my HDD and can even click on it to see the folders but am unable to see the contents of any folders.  I have checked permissions on all folders when connected directly to the laptop and all seems fine.  When connected directly to the laptop I can view all files on the HDD.  I can view the contents of all the folders from my iPad when using FileBrowser but not through the MacBook.
    Does anyone have any ideas as to why the contents of the folders are not showing when accessing through AEBS?
    Help is appreciated.

    Did you map the drive? It won't show up in Explorer automatically like a jump drive or an external drive plugged directly into the PC will.
    You didn't mention the OS you're running, but what you want to do is choose "Map a network drive" and you'll see the router listed as a network device. Click on it and you should see the external drive listed. You can map it from there. 

  • I'm trying to upload the new itunes version because The older one doesnt match with the iphone 5. At one step it is required one code to allow the installation but as It is not the itunes code which one is it ?

    I'm trying to upload the new itunes version because The older one doesnt match with the iphone 5. At one step it is required one code to allow the installation but as It is not the itunes code which one is it ?

    Hello, GwladysPa. 
    Thank you for visiting Apple Support Communities. 
    I believe that the iTunes update is requesting your computer's administrator password to update the application.  Here is the article that explains this process. 
    Mac OS X: Software installations require administrator password
    http://support.apple.com/kb/HT2558
    Cheers,
    Jason H. 

  • Split pane only shows buttons, not the panes I placed there

    problem: my split pane only shows buttons, not the panes I placed there
    here's my complete code:
    thanks.
    * MLDpane.java
    * Created on July 23, 2003, 3:31 PM
    import javax.swing.*;
    import javax.swing.tree.*;
    * @author  Administrator
    public class MLDPane extends JSplitPane {
        private JScrollPane jScrollPane2 = new JScrollPane();
        private JTextPane ttView = new JTextPane();
        private JScrollPane jScrollPane3 = new JScrollPane();
        private JTree treeView = new JTree();
        private  void init() {
            setDividerSize(5);
            //setPreferredSize(new java.awt.Dimension(600, 302));
            //jScrollPane2.setMinimumSize(new java.awt.Dimension(100, 20));
            //jScrollPane2.setPreferredSize(new java.awt.Dimension(300, 300));
            //ttView.setPreferredSize(new java.awt.Dimension(300, 22));
            jScrollPane2.setViewportView(ttView);
            setLeftComponent(jScrollPane2);
            jScrollPane3.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            //jScrollPane3.setMinimumSize(new java.awt.Dimension(100, 20));
            //jScrollPane3.setPreferredSize(new java.awt.Dimension(300, 200));
            treeView.setModel(null);
            jScrollPane3.setViewportView(treeView);
            setRightComponent(jScrollPane3);
         public MLDPane() {
        /** Creates a new instance of MLDpane */
         public MLDPane(MedLEEDoc mld) {
            init();
            ttView.setDocument(mld.getTextDoc());
            treeView.setModel(new DefaultTreeModel(mld.getRoot()));
        public static void main(String args[]) {
            JFrame j = new JFrame();
            j.getContentPane().add(new MLDPane());
            j.show();
            //j.setVisible(true);
            //j.setExtendedState(j.MAXIMIZED_BOTH);

    Hi,
    I think you are invoking the default (no argument constructor) instead of the one argument constructor
    try this:
    j.getContentPane().add(new MLDPane(MedLEEDocObject));

  • How do i sort playlists? NOT THE CONTENT (songs)

    Hi guys, Is there a way to sort/order the playlist order NOT the content of the playlist (songs inside the playlist) since its alphabetically sorted by default.
    For example you have 3 playlists named...
    Strawberry
    Apple
    Grapes
    It'll be automatically sorted in the order of Apple -> Grapes -> Strawberry no matter when the playlist was created.

    Add leading digits.
    1: Strawberry
    2: Apple
    3: Grapes
    And use playlist folders to group related playlists.
    tt2

  • Hi. My ex girlfriend used her apple id and icloud to register my iphone. and now i want to sell my phone to someone but i cant reset all the contents and password because i dont know her password. we dont have anymore communication right now.  please help

    Hi. My ex girlfriend used her apple id and icloud to register my iphone. and now i want to sell my phone to someone but i cant reset all the contents and password because i dont know my ex password. we dont have anymore communication right now.  please help. thnx

    No one here can help you, nor can/will Apple. Unless you can get that info, you won't be able to restore the phone, to sell it, or re-activate it.
    You need to somehow get back in touch with your girlfriend & obtain this info, or all you'll own is a paperweight.

  • Can not copy all of the content of Card in Address Book

    Why can you no longer select all of the content of a card in your address book to copy/paste into a document in Pages? The new version does not let you select-all and copy the content of a card in the address book. You have to select each individual line? Anyone find a work around? Another problem with the new operating system.

    I didn't see Andrew's post before I started working on the Service option. I fleshed out some things and came up with this:
    If you make it a service, you have to choose the type of data the service collects. Text seemed to work the best, but you had to right-click on some text in the card. In the workflow, you had to do something with the text or it would fail. I tried 'no input' as the service data type, but then you couldn't actually get the service to show up in the contextual menu.
    However, you can assign it a shortcut in the keyboard system prefs. I assigned the workflow cmd+shift-C. This works out fine. The workflow runs and copies the contact info to the clipboard.
    You can set up the Get Contact Information to collect whatever data you want. If you wanted to choose the type of data each time, you could set the options of that action to Show this action when workflow runs.
    To summarize the workflow:
    New Automator Service
    No Input in Address Book
    Get selected Address Book People
    Get Contact Information
    Copy to Clipboard
    Save this and then go into Keyboard System Prefs, Keyboard Shortcuts, Services, and set a shortcut for your new service.

  • Get only the filename not the full path of the file.

    hi to all..
    how can i get only the filename of the file not the full path and to be placed on a textinput.?
    example:
    when i'browse the file and select sample.txt
    "C:\Users\user\Desktop\folders\sample.txt" this will be inputted on the textinput.
    however, what i want to have is when i'browse and select a file..
    textinput should only contain "sample".
    does anyone knows how to do it?

    Hi cyrus@adobe,
    How are you getting the full path of the file when you browse, I dont think for security reasons the Flash Player will aloow to do so. You can only get the file name not the full path of the file when you browse.
    Are you using Flex4..?? I am not sure whether this is possible in Flex4..However if you are getting full path and if you wanted to show only the filename then you can just use theString class split function to acehive this..
    var fullPath:String = "C:\Users\user\Desktop\folders\sample.txt";
        var splitPath:Array = fullPath.split("\");
        textInput.text = splitPath[splitPath.length-1];
    Thanks,
    Bhasker

Maybe you are looking for