What command could be used as xcopy (in windows) ?

I need to pick up files with certain rule as .mov and to move them to another folder.
How to carry out similar command (win) "xcopy /folder1/*.mov /folder2  -s -e -d" in os-x ?
Can this be done with cp, if how ? rsync copies only complete folders ?

Here is the man page for cp:
NAME
     cp -- copy files
SYNOPSIS
     cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
     cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ...
  target_directory
DESCRIPTION
     In the first synopsis form, the cp utility copies the contents of the
     source_file to the target_file.  In the second synopsis form, the con-
     tents of each named source_file is copied to the destination
     target_directory. The names of the files themselves are not changed.  If
     cp detects an attempt to copy a file to itself, the copy will fail.
     The following options are available:
     -a    Same as -pPR options. Preserves structure and attributes of files
    but not directory structure.
     -f    If the destination file cannot be opened, remove it and create a
    new file, without prompting for confirmation regardless of its per-
    missions.  (The -f option overrides any previous -n option.)
    The target file is not unlinked before the copy.  Thus, any exist-
    ing access rights will be retained.
     -H    If the -R option is specified, symbolic links on the command line
    are followed.  (Symbolic links encountered in the tree traversal
    are not followed.)
     -i    Cause cp to write a prompt to the standard error output before
    copying a file that would overwrite an existing file.  If the
    response from the standard input begins with the character `y' or
    `Y', the file copy is attempted.  (The -i option overrides any pre-
    vious -n option.)
     -L    If the -R option is specified, all symbolic links are followed.
     -n    Do not overwrite an existing file.  (The -n option overrides any
    previous -f or -i options.)
     -P    If the -R option is specified, no symbolic links are followed.
    This is the default.
     -p    Cause cp to preserve the following attributes of each source file
    in the copy: modification time, access time, file flags, file mode,
    user ID, and group ID, as allowed by permissions.  Access Control
    Lists (ACLs) and Extended Attributes (EAs), including resource
    forks, will also be preserved.
    If the user ID and group ID cannot be preserved, no error message
    is displayed and the exit value is not altered.
    If the source file has its set-user-ID bit on and the user ID can-
    not be preserved, the set-user-ID bit is not preserved in the
    copy's permissions. If the source file has its set-group-ID bit on
    and the group ID cannot be preserved, the set-group-ID bit is not
    preserved in the copy's permissions.  If the source file has both
    its set-user-ID and set-group-ID bits on, and either the user ID or
    group ID cannot be preserved, neither the set-user-ID nor set-
    group-ID bits are preserved in the copy's permissions.
     -R    If source_file designates a directory, cp copies the directory and
    the entire subtree connected at that point. If the source_file
    ends in a /, the contents of the directory are copied rather than
    the directory itself.  This option also causes symbolic links to be
    copied, rather than indirected through, and for cp to create spe-
    cial files rather than copying them as normal files.  Created
    directories have the same mode as the corresponding source direc-
    tory, unmodified by the process' umask.
    In -R mode, cp will continue copying even if errors are detected.
    Note that cp copies hard-linked files as separate files.  If you
    need to preserve hard links, consider using tar(1), cpio(1), or
    pax(1) instead.
     -v    Cause cp to be verbose, showing files as they are copied.
     -X    Do not copy Extended Attributes (EAs) or resource forks.
     For each destination file that already exists, its contents are overwrit-
     ten if permissions allow. Its mode, user ID, and group ID are unchanged
     unless the -p option was specified.
     In the second synopsis form, target_directory must exist unless there is
     only one named source_file which is a directory and the -R flag is speci-
     fied.
     If the destination file does not exist, the mode of the source file is
     used as modified by the file mode creation mask (umask, see csh(1)).  If
     the source file has its set-user-ID bit on, that bit is removed unless
     both the source file and the destination file are owned by the same user.
     If the source file has its set-group-ID bit on, that bit is removed
     unless both the source file and the destination file are in the same
     group and the user is a member of that group.  If both the set-user-ID
     and set-group-ID bits are set, all of the above conditions must be ful-
     filled or both bits are removed.
     Appropriate permissions are required for file creation or overwriting.
     Symbolic links are always followed unless the -R flag is set, in which
     case symbolic links are not followed, by default. The -H or -L flags (in
     conjunction with the -R flag) cause symbolic links to be followed as
     described above.  The -H, -L and -P options are ignored unless the -R
     option is specified.  In addition, these options override each other and
     the command's actions are determined by the last one specified.
     If cp receives a SIGINFO (see the status argument for stty(1)) signal,
     the current input and output file and the percentage complete will be
     written to the standard output.
EXIT STATUS
     The cp utility exits 0 on success, and >0 if an error occurs.
COMPATIBILITY
     Historic versions of the cp utility had a -r option.  This implementation
     supports that option; however, its use is strongly discouraged, as it
     does not correctly copy special files, symbolic links, or fifo's.
     The -v and -n options are non-standard and their use in scripts is not
     recommended.
LEGACY DESCRIPTION
     In legacy mode, -f will override -i.  Also, under the -f option, the tar-
     get file is always unlinked before the copy.  Thus, new access rights
     will always be set.
     In -R mode, copying will terminate if an error is encountered.
     For more information about legacy mode, see compat(5).

Similar Messages

  • What command would you use to check for allocation, structural, or logical integrity problems?

    What command would you use to check for allocation, structural, or logical integrity problems?

    Wondering if you are looking for DBCC CHECKDB command? For more information, on that command, try to look at this:
    http://technet.microsoft.com/en-us/library/ms176064.aspx

  • Macbook Air is locked. What command should I use to reboot? Why is this happening? Pics included

    I recently got a MacBook Air from someone who owed me money. The MacBook Air is completely locked and Im not sure how to bypass the secured login screen or which code to use that will boot in an alternative mode. I've tried Command + R, Command + S, Option and none of these three worked. When I press Command + R, I get the following lock screen (the picture is just upside down, not sure why.)
      I own a macbook pro and have reset my password using Command+R. Not sure if MacBook Airs need a different command. When I press Command+S I get a loading screen, then a screen that tells me "Your computer is disabled. Try Again in 60 minutes"
    Why is this happening?
    What command can I press to bypass this?
    Could I put a clean OS on a USB drive and install it that way to have a clean install? If so, how do I boot it, if I can only get to these screens?
    Now that my computer is disabled and I have to wait 60 minutes, should I perform the correct command once the time is expired or can I use it immediately, while the disabled time is still active?
    Please help!!!!
    Also, not sure which OS its running since I can't get pass this to fully inspect the Macbook Air.

    That is an EFI Firmware Password.
    There are only two ways around it: bring it and some money to Apple, who will certainly want proof of ownership, or obtain the password from its previous owner.
    A third method that I do not recommend is to pay any number of sketchy third party outfits that allege a means of removing the password. There are several reasons I do not recommend it, among them: I have no personal experience with them, I have no idea if they will be successful, and you may have no recourse if they damage the Mac and render it permanently broken. Apple will certainly refuse service if anyone other than Apple or an authorized Apple repair facility tampers with it.
    MacBook Air (Original), MacBook Air (Late 2008), and MacBook Air (Mid 2009): Recovering a lost EFI firmware password - A…
    If you lost or forgot your firmware password - Apple Support

  • What commands can I use in iChat, like "/me"?

    What special commands can I use in iChat?
    I know about the command /me
    And I know there's a command to roll dice
    What are the other commands, or what command will get me a list of commands?

    Hi,
    I know about slashme ( /me )
    For those that don't know it is something you can type in a Text Chat and it wil appear in the middle of a Text chat at the same point Timing and the Joining/Leaving messages.
    /me waves will appear as "Ralph Johns waves".
    The name that appears for you and your Buddies doing this depends on how you store your name in the Address Book (Real name in iChat) and those of your Buddies. If you only know/store their Screen Name That is what appears.
    I don't know about the Dice roll though.
    Could do with knowing what that is.
    4:18 PM Sunday; September 20, 2009

  • How I know my vpn site is up or what commands I cn use to chek it.?

    Hi Guys
    How can I check if my vpn is working > I cannot ping the other side I cannot log into the another VPN asa. 5510. Is any commands I can run?

    You could also use the following two commands:
    show crypto isakmp sa
    show crypto ipsec sa
    They will show you if Phase 1 and Phase 2 are up respectively.
    Witht the first you can see if Phase1 is completing or if it is failing at some point.
    If Phase1 is up, then with the second command you will be able to see if Phase2 is up, and if you are sending and/or receiving traffic across the tunnel.

  • The limit to imagination for what we could achieve using Labview

    Hiya
    I would like to create a user interface by customizing front panel so it could be used as an oscilloscope. This oscilloscope allows user to do following selections.
    Analogue or digital signal
    which channel
    raw binary data or scaled measurement
    enter mathematical formula
    and then it displays the signal. There are some knobs which could be used to zoom in or alter display to ficilate analysis. This is just imagination, Is it possible to achieve this on Labview. What are the steps please??
    Your help is much appreciated.
    Ta

    You can download and install the NI-SCOPE driver, which includes the NI-SCOPE Soft Front Panel, an oscilloscope application written entirely in LabVIEW.  This will give you an idea of what is possible (essentially anything even vaguely reasonable, plus a lot more, limited only by your imagination and skill).  Unfortunately, the driver is very large.  If you want a picture, check this out.
    The underlying architecture of this application is virtually identical to the architecture given in this post.  However, you would probably be better off following Ben's suggestion to hone your LabVIEW skills, then dive into the xylophone example.
    <fullDisclosure> I am a National Instruments employee. </fullDisclosure>
    Message Edited by DFGray on 01-28-2010 08:52 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • What command shall i use to debug codec ????? ........

    hello,
    any body can tell me what the command should be used to find codec debugging like this command:
    debug isdn q931
    i need special one for debugging codec....
    BR.

    "show call active voice brief" will show the codec in use for each leg of a call.
    Hope this helps. If so, please rate the post.
    Brandon

  • What is the font used in firefox in Windows 8

    hi
    i want to know what font is used in firefox in windows 8 ?
    this font is very good for persian characters
    now i'm using windows 7 and i want to have font style like in windows 8
    how can i change the settings

    Is this a font in the user interface or on web pages?
    You can right-click on a web page and select "Inspect Element" to open the Inspector (Firefox/Tools > Web Developer).
    You can check the font used for selected text in the Font tab in the right pane of the Inspector.
    *https://developer.mozilla.org/Tools/Page_Inspector

  • What else could it (usefully) do?

    I was amazed to find how easy it is to use - just wipe my finger across the screen and see the result!  Definitely need bigger "wipe" bars in Photoshop/ Photoshop Elements!
    What else would I like?  Well, many phone camera lenses are a bit fisheye, so it would be very useful to have some of Photoshop Elements' Camera Distortion effects to reduce this.
    For the purposes of amusement, it would be useful to be able to distort a part of a picture, say making a nose bigger or a tummy smaller (click on  a point on the photo, choose a radius for the effect, choose the scale of the effect).  Of course this is exactly the same as reducing fisheye distortion, as if you had selected the centre of the photo as the point, and the whole photo as the radius.
    The effect I use the most often in Photoshop Elements is Levels (again, particularly important with a phone camera which isn't high quality).  I expand the range of the photo, so the dark greys become blacks and the light greys become whites (Enhance/ Lighting/ Levels or CTRL-L).  Could you do this multi-touch?

    Thanks for taking the time to share your thoughts!  Direct user feedback really helps us understand user needs and trends.
    --Charlie

  • I'm currently capturing with an Xha1 camera.  What recorder could I use instead for use on cc7?

    Instead of using my Xha1 to caputre HD footage to Adobe's cc7 software, is there a compatable HD recorder I could use instead, to save on the wear and tear of the camera's heads?

    It depends what frame format you record in. If you shoot interlaced, most any HDV camcorder or deck will work. If you shoot progressive, i.e. 25p or 30p, only Canon devices will work, due to a proprietary method to write to the tape.
    The least expensive HDV camera that Canon still sells is the HV40, but I'm sure you could pick up a HV20 or HV30 fairly cheap on eBay or such.
    That said, head wear is largely a myth for these cameras, but if you are starting and stopping the tape a lot for transfer, worrying about wear on the transport mechanism is not unrealistic.

  • What command would  you use to open a directory (i work with mostly vista

    and xp...basically...I want to get a button to open an explorer file directory

    public class Exec {
         public static void main(String[] args) throws Exception {
        String[] commands =
           {"cmd", "/c", "start", "\"title\"", "\"c:/program files\""};
           Runtime.getRuntime().exec(commands);
    }You need to pass a dummy title to the start command especially if the target contains spaces.
    Bye.
    RG.

  • What techniques could be used to remove this camera operator reflection?

    http://www.youtube.com/watch?v=jvEq-kJufNI&feature=youtu.be
    An important note: The clip will become black and white in the final movie.
    Thank you.

    I would trim the shot to just the footage necessary to tell the story first because this is going to be tough. The worst parts are where the guy in the dark blue suit provides a background for the reflection just as the door closes.
    Here's how I would approach the fix. Photoshop's healing brush is probably the best tool for generating a clean plate I would try painting a frame at a time in Photoshop being as careful as you can to remove just enough to break up the reflection instead of completely remove it. The dirty window is your friend here. Here is a side by side comparison I did of a screen grab in Photoshop that took only 5 strokes with the healing brush. The closing door should hide the flicker completely if you don't get too aggressive and you remember what you were painting.
    Retouch just enough frames to cover the worst of it.
    Check playback to make sure that you are not introducing flicker that is worse than the original problem.
    When the door closes and the reflection is pretty much hidden stop. Back in AE take a close look at the shot and in the few remaining places that movement by the camera operator give him away ADD some grunge to the shot that can be faded in and out slowly to hide it just to cover the telltale movement.
    You've got to remember that the audience isn't going to be scrutinizing every frame and that hiding only the give away parts and throwing in a little extra grunge is the best way to handle this problem.

  • I would also like to know, what program could I use to take a song and take the instrumental away from the singing. I would like to know wat prgram is similar to audacity for mac.

    I would like to know about a program for mac book similar to Audacity. Pleases assist...

    http://audacity.sourceforge.net/.
    Open source for Mac - latest release should work with any machine/OS.
    Clinton

  • What command to use in command prompt inside HP Recovery Manager to recover hard drive?

    Hi,
    I'm trying to use HP's Recovery Manager to restore my hard drive to the original factory settings. When going into Recovery Manager via "F11" during computer startup, all of the options are greyed out except, "Run Computer Checkup." Inside that option, all options are greyed-out except, "Open a command prompt."
    Once I open a command prompt, the window title is "Administrator: X:\Windows\system32\Cmd.exe" and the command line in the window is "X:\Windows\RM\>"
    I have no idea what command to enter here to recover the hard drive! What command should I use???
    Why are all the normal options in Recovery Manager greyed out?
    Background: I dropped my laptop and afterwards the computer will power on but not boot up from the hard drive - it says there is a hard drive error. I have been able to recover most/many files from the harddrive by taking it out and connecting it to another computer and using a recovery software program. I am not sure if the hard drive is physically/irreparably damaged, but it does spin and I have recovered many files from it. Now ready to recover it back to original state and then reload my recovered files.
    Computer: HP Pavilion DM3-1030us purchased in January 2010
    OS: Windows 7
    Thanks for any suggestions anyone can offer!

    There isn't a command that I am aware of to use at the command prompt that will recover your computer. If you dropped your computer, it is likely that the hard drive suffered physical damage. Please see HP Notebook PCs - Testing for Hardware Failures (Windows 7, Vista) for instructions on testing the hard drive. It is also possible that the HP Recovery partition was damaged and you may need to use the HP Recovery Media you created when you first setup your computer
    If you didn't create this media, please contact official HP Customer Support in your region / country, via the HP Worldwide Support Portal, to see if HP Recovery Media is available for your computer. Software may not be covered by the warranty and there may be a charge for the HP Recovery Media.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • What software would I use to make an ios app?

    What software could I use to make an IOS app?

    Apple's IDE, Xcode.
    See Xcode Versions ~ iOS - As of 9.19.12

Maybe you are looking for

  • I have 2 apple ID accounts how can I merge

    my original apple account set up by my husband is different from the one he set up for my Iphone so my MAC, Iphone and Ipad do not match , is there a way to merge the accounts?

  • Java APP inside a Win32 Window

    Hello, Q1: I need to embed a complete java swing application inside an existing win32 application window (I have the HWND of it). How to do this ? Q2: Is it possible to set the native Win32 parent window of a JFrame with JNI ? Cheers, Mik

  • How do I get a new phone from my warrenty because my current iPhone has a pixel issue?

    My current iphone has pixel that bothers me while im watching videos, playing games etc. I cant see the pixel when the whole screen is lit up but when majority of the screen is lit up and the top and bottom parts arnt I can see the pixel always going

  • Enquiry in SAP SCRIPT

    Hi, I want to increment the vertical line dynamically according to the line items in SAP SCRIPT. How will I do it?? Pooja

  • Can't open, install or uninstall after an upgrade

    Get the same message with installing and removing iTunes: "the folder path "My Music" containsan invalid character" and than:"fatal error during instalations" or "installer encountered errors before itunes could be configured...to retry these operati