Copying Directories Alphabetically using ls and sort

I have several servers with a SAN backend. The goal is to copy only selected files to another SAN.
SAN01 has several directories in it. SAN02 is brand new, and will be used has a near line backup.
I would like to have the servers connected to it copy specific directories from SAN01 to SAN02. I was thinking about breaking the directories up alphabetically. For example, if I had 2 servers connected to the SAN, server1 will copy a-l, and server 2 will copy m-z.
I know there must be a way to do this using a combination of ls and sort, but I’m not sure what that combination is.
Any help is appreciated!
David

Ok, somebody sent me this;
so, if I had a set of files called:
alex.0001.cin
brian.0001.cin
clay.0001.cin
david.0001.cin
elrond.0001.cin
faramir.0001.cin
and I wanted to copy just the a thru c files, I would do:
% cp [a-c]* destinationdir/
and it would copy alex, brian, and clay to whatever the desitinationdir is.

Similar Messages

  • Sharepoint 2013 copy/move operation using Content and Structure fails

    Hi,
    We had a recent upgrade from SP2010 to SP2013 environment. After the migration, we realized that the
    copy/move operations using Manage content and structure(sitemanager.aspx) is not working as expected, neither does this give any error nor is it stuck. In fact if I check the content and structure log I find the message as
    succeeded but file/item is not copied to the target. 
    The strange thing is that if I am performing this operation with Full Control permission level it
    does not work but if I do the operation as Site collection admin it works without problem. I know if sub-sites are to moved then one should be site col admin but in this case I am trying to move just documents or pages.
    Any help will be greatly appreciated.
    Thanks

    Hi Vineet,
    According to your description, my understanding is that copy/move operation using Content and Structure cannot work in SharePoint.
    I recommend to check if there are any custom fields in the source list/library and target list/library. If yes, delete the custom fields to see if the issue still occurs.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/56d803d7-8573-4c29-9f6b-c63023941f44/manage-content-and-structure-cannot-move-or-copy-items?forum=sharepointgeneralprevious
    To copy or move files/items between sites, we need to have
    appropriate permissions on both sites.
    I recommend to check if the user has full control on both sites.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Difference between copying cube content using datamarts and direct copying

    Hi Experts,
    I have been going through the SDN for the last 6 months  and this is my first post
    I know two methods of copying the cube content from one cube to another.
    One is data mart method in which we create a datasource based on the cube and
    then create a transformation between the new cube and datasource.
    This method is used if our source cube is in same server or in diff server.
    Other method is directly copying the cube content from source to destination
    by creating a transformation between two cubes .
    this is used if source cube anddestc u be are in same server.
    My  doubt is if both the cubes are in same server then what is diff between first method
    and second method,
    Please clarify me

    Hi,
    Now Iam closing this thread with a conclusion .
    The question is what is the difference between copying cube
    content using datamarts and direct copying
    Also what are there any other methods to copy cube contents
    from one cube to another.
    The  diff bet using data marts and direct copying is
    In case of datamarts,ven if the source cube is changed in futute there is no effect on the target cube.
    In case of copying directly,whenever the source cube is changed,the transformation becomes inactive.
    so we have to activate the transformation again.
    ALso there are some other methods to copy cube contents fron one to other .
    But datamarts is sap standard one.
    Thankyo every one for giving answers
    Regards,
    Sundar

  • Not able to use @section and Sort within a group in RTF Template

    When i try to use sort with for-each-group@section in my template, the Output Post processor is throwing the following exception
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 31, Column 84>: XML-22047: (Error) Invalid instantiation of 'xsl:sort' in 'fo:flow' context.
    My tags in the RTF template are as below:
    <?for-each-group@section:G_PERSON_ID;./DEPT?><?sort:DEPT;'ascending';data-type='text'?>
    -- there are 2 more groups within this.
    <?end for-each-group?>
    I don't get the error if i remove @section from the above tag in my RTF template.
    OR
    IF i remove the sort tag and keep the @section , it still works.
    I need the "sort" so that i can sort the output by department number and I need the "section" so that i can acheieve context based header title for the page using the tag given below in the header area of the word RTF doc. The DEPT number should change as per the data shown in the report.
    DEPT <?DEPT?> CLASSIFICATION SENIORITY LISTING BY CLASS CODE & DATE
    I am stuck with either being able to use the Sort or the Header feature but not both.
    I guess that section is needed for the context based header title to work, because all the data shown in the current page should correspond to only one single DEPT value (to make the Header title consistent with the data). But i dont get why i am not able to sort. The exception from OPP simply beats me. Please help!!
    I am using the XML Pub Desktop 5.6.2 to develop my templates.
    Is there any way to acheive this? Can someone throw some light on this.
    Thanks in advance.

    Help About says I'm on 20.0.1
    Up until last week, I was able to use the tab key when typing emails and other multi-line text boxes.
    Suddenly the behavior of the tab key changed. This isn't the first time. It's been quite a while ago that the function of the tab key changed from indenting to moving around the page, then after some time it changed back to indenting.
    Can we get this fixed and leave it alone, please?
    I may give one of those add-ins a try, but my problem with add-ins is that they break when FF is patched or upgraded, then I'm left with out the solution they provide.
    Can we just fix Firefox, please?
    Thanks,
    Frank
    P.S. Another potential fix I came across suggested starting FF in safe mode to see if the problem goes away. It does not. It seems to be a change to FF that appeared after an update last week. On or just befor 24 Apr.

  • "Show" and "Sort Show" fields still there?

    Hi Forum,
    Been reading all the other user issues with the changes to metadata structure in iTunes 12. But here's something.
    I used "Show" and "Sort Show" to tag certain info in my music collection.  I used "Show" to tag whether I had listened and rated a song - if so, I tagged it as "Eval" meaning evaluated. This way, I could make a quick Smart Playlist to see all the music I haven't evaluated yet. Not essential, and I was ready to shrug and say "oh well, it's gone" but it's actually still there somehow.
    My existing Smart Playlists still find the metadata on each song. I go to my "un evaluated" smart playlist and it's still full of the same songs. And in the columns, you can see "Eval" or not under "Show." The problem is that I cannot access the field anymore to make changes.
    Ay ideas?
    PS - I have no idea how the new iTunes was installed, I don't ever remember saying to install it and I always click "no" when it prompts me to because it always screws up my database....

    I'm having exactly the same frustration -- on both counts.  iTunes 12 is really dumb, and it was installed by what seems like stealth.  And you can't go back -- iTunes 12 is "an essential part of the system and can't be modified or deleted".
    Another thread pointed out this fix, which naturally is completely undocumented:  Select a song, hold down the Alt key, then right-click on the song and select Get Info.  You will see the traditional iTunes editing window, with the Show tag field.  Voila!
    Doug's AppleScripts has come up with a window to edit all fields for multiple items -- available at http://dougscripts.com/itunes/scripts/ss.php?sp=multiitemedit.  It's not free, but it's pretty close to it. I'm not connected with them, but they do a pretty good job.

  • Using Prelude to sort and organize a ton of media

    So I have about 2 years of old behind the scenes footage (about 1tb) that is spread out through about 40 different folders. I have ingested the whole mess into Prelude, but I am finding it difficult to start the sorting process. What I would like to do is start with general sorting, grab a few clips, copy them, and add them into a new bin, and so on, but I cant go this route. It appears as though I have to create a new rough cut for each catagory and then drop the files in that sequence. This seems like more steps than necessary for doing the beginning stages of sorting. Is Prelude the right choice to sort through masses of old footage, or should I just use Premiere to do it?
    To summarize. I need to take thousands of files and separate them into general catagories.
    I appreciate your time

    sorry for the late response.  I have found using the label tag in Prelude is the most helpful. Most of my job is logging and sorting one folder with thousands of clips from trips videographers take overseas in to interview, selects and discard folders. Label all your clips (under the basic metadata menu there is a field called "Label") and then sort them into appropriate folders using Bridge (open the folder holding the footage, pick the appropriate label, then drag and drop into the appropriate folder if necessary). That's the way I do it and it's pretty quick, I usually average 25-30 clips an hour (logging, labeling and sorting) including interviews.

  • Copy sheets and sort

    I'm new to numbers, and have been learning how to use the software - great tool!
    I have - what should be - a simple request, but I have not found the answer just yet - so I'd like some feedback and direction. I have a sheet set up which I would like to be able to duplicate (on another sheet) where I could sort the second (or third) in a different way, and still only have to make changes on the first sheet as information gets updated/removed/altered.
    Thx,
    Daryl

    Daryl,
    Yes, it's pretty simple. You can use three sheets if you wish, but since this is Numbers, you can put the two (or three) tables on one sheet where they are all in view at once and sort to your heart's content.
    In the second table, in A1, type an =sign and then click on A1 in the first table. Select A1 in the second table and then grab the little circular handle in the lower right corner and pull it down to Fill the expression to all the other rows in column A. Then select the entire column A and again grab the Fill Handle and pull it across to copy the expressions to all the other columns.
    Repeat for the third table.
    Any edits in the first table will appear in the other tables, but the sort orders will be independent.
    Jerry

  • I have itunes set up on a PC with all my music, apps, etc. I want to stop using PC and move my iTunes and files to a Mac I bought and synch my iPhone with the Mac. Can I just synch iPhone with Mac iTunes and will it copy all my stuff onto Mac, or will I h

    I have itunes set up on a PC with all my music, apps, etc. I want to stop using PC and move my iTunes and files to a Mac I bought and synch my iPhone with the Mac. Can I just synch iPhone with Mac iTunes and will it copy all my stuff onto Mac, or will I have to copy files from PC onto Mac?

    Here are some of the links to get you started.
    https://discussions.apple.com/thread/3727530?start=0&tstart=0
    http://support.apple.com/kb/HT4527
    http://www.macworld.com/article/1146958/move_itunes_windows_mac.html

  • I have just bought a new Imac and it will not load my copy of FCE 3.5 as it says "PowerPC applications are no longer supported". So how do I get to use the version of FCE I am used to and have paid for ?

    I have just bought a new Imac and it will not load my copy of FCE 3.5 as it says "PowerPC applications are no longer supported". So how do I get to use the version of FCE I am used to and have paid for ?

    I do not have any experience with Final Cut, but if you have existing projects that you MUST access; then you are in need of a solution on your new iMac in Mountain Lion!
    Unfortunately you got caught up in the minor miracle of Rosetta.  Originally licensed by Apple when it migrated from the PowerPC CPU platform that it had used from the mid-1990's until the Intel CPU platform in 2006, Rosetta allowed Mac users to continue to use their library of PPC software transparently in emulation.
    However, Apple's license to continue to use this technology expired with new releases of OS X commencing with Lion (and now Mountain Lion).  While educational efforts have been made over the last 6 years, the fact is that Rosetta was SO successful that many users were caught unaware UNTIL they upgraded to Lion or Mountain Lion.
    Workarounds:
    1.  Purchase a used Mac that will run Snow Leopard (with the optional Rosetta installed) and continue to run FCE on that Mac (you can actually use Screen Sharing with a "headless" used Snow Leopard Mac Mini and use the 27" screen from your iMac to view and work FCE in the Mac Mini environment);
    2.  Upgrade to an Intel compatible version of FCE and hope it converts your existing projects to its newer format correctly.  There is much debate that the newer version of Final Cut are eliminating many needed features; for example Final Cut Pro X vs. Final Cut Pro 6 -- many users are staying with version 6;
    3.  Install Snow Leopard (with Rosetta) into Parallels and then install FCE in the Snow Leopard environment:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439
    NOTE: STEP ONE of the instructions must currently be completed on a Snow Leopard or Lion Mac and the resulting modified Snow Leopard.cdr install file can then be moved over to your Mountain Lion Mac for completion of the remaining steps.
    NOTE 2:  Computer games with complex, 3D or fast motion graphics make not work well or at all in virtualization.

  • How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all a

    How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all albums.  Please help.

    You can't do it directly on the iPad - the new album functionality basically only allows you to copy photos into those new albums, you can't move them. The way that I think of it as working is that you are just creating pointers to the photos in those new albums, so if you then delete the original photo on the iPad you therefore automatically delete all the pointers to it.
    If you want to re-organise your albums then you will need to do it on your computer and then sync those albums over to the iPad

  • So I am trying to copy my hard drive "Macintosh HD" to an external hard drive, i want to use Terminal and have tried many ways. For example cp -r /Volumes/"Macintosh HD" /Volumes/"NO NAME". When i do it says No such file or directory. Ideas?

    So I am trying to copy my hard drive "Macintosh HD" to an external hard drive, i want to use Terminal and have tried many ways. For example cp -r /Volumes/"Macintosh HD" /Volumes/"NO NAME". When i do it says No such file or directory. Ideas?

    The reason that threadjacking is frowned on (as mentioned in the terms use which you can read by clicking the link to the right on this page) is for the most part a practical one:
    By starting your own thread your problem can get individual attention, focussed on your particular set of circumstances.
    By joining somebody else's thread it becomes tricky to answer more than one question at the same time, and can lead to confusion for both parties.
    So if you don't mind the minor inconvenience, please start your own thread (in the correct forum) so we can get to grips with your particular problem!

  • I have been backing up iMovie 08 files to my external drive, but for some reason I can't open these files in iMovie.  I used drag and drop to copy them.

    I have been backing up iMovie 08 files to my external drive, but for some reason I can't open these files in iMovie.  I used drag and drop to copy them.

    You really should be doing backups with an actual backup application, especially one that will work automatically, and, if your external HD is large enough, back up your entire system.  These can automatically back up only what's changed since the  previous backup, and some will keep "archive" copies of things you've changed or deleted, also.
    Too many things can go wrong, such as your internal HD failing, and you'll have a major project to reinstall everything.
    You already have Time Machine, built-in to OSX.  You might want to review the Time Machine Tutorial, and perhaps browse Time Machine - Frequently Asked Questions.
    #27 in the second link mentions some alternatives, too.

  • Is there a way to import clips from AVCHD folders I have copied from my camcorder to my hard disk? With FCE I could import these clips using log and transfer.

    In FCP-X is there a way to import AVCHD clips from an AVCHD file folder I have copied from my Canon hard disk camcorder to my iMac hard disk?  With FCE I used log and transfer with no problem; but, FCP-X doesn't import them. It will import AIC files that have been created in FCE from the original AVCHD files.  If FCP-X will not import these files directly from the copied AVCHD folder, is there a workaround using other software to convert the files? For example, Compressor? (Canon does not provide any AVCHD conversion software for OSX).

    Hi jphil and Tom
    I have exactly the same problem but the answer you (Tom) provided did not help in my case. Trying to "Import ->From Camera" and pointing to the AVCHD folder yields the error message: "(Folder) contains unsupported files or has invalid directory structure."
    Folder structure is
    AVCHD
         BDMV
              CLIPINF
                   .CPI files
              Index.bdm
              Movieobj.bdm
              PLAYLIST
                   .MPL file
              STREAM
                   .MTS files
    AVF_INFO
         3 files (.bnp, .inp, .int)
    DCIM
         101MSDCF
              empty
         MODELCFG.IND (file)
    My question is: Is that not a "camera archive" of the type you talked about in the thread? Is it on principle not possible to import the files in that format/directory structure? If not, since the shots were not taken by myself, what should I ask the guy who shot the movies to give me to be able to work with them in FC?
    I work with a brand new Final Cut Pro X 10.0.4 (still very clumsy with it) on an iMac 11,3 with MacOS 10.6.8.
    I downloaded the latest version of codec updates from the Apple support site but no difference.
    Thank you in advance
    Giorgio
    Freiburg, Germany

  • HT204406 I used Match, and now there are artists missing when I search by artist, yet they are in my library when I search by song. If they are in many song list,  why aren't they in my artist list? Also I can't sort my songs by artist on iPhone,  so thes

    I used Match, and now there are artists missing when I search by artist, yet they are in my library when I search by song. If they are in many song list,  why aren't they in my artist list? Also I can't sort my songs list by artist on iPhone,  so their music is basically lost in space....help

    It's not clear from your post, but you do realise
    that if you import a cd as a compilation, it will not
    appear under artists? This is done to save the iPod
    being cluttered up with single artists entries who
    might have only one song listed.
    I wasn't aware of that. It's true that I haven't been using the "compilation" tag for a long time. I've only started using it with iTunes 7 as otherwise with Coverflow I would have one album cover for each artist in a compilation. Before that my compilations weren't tagged as such as that is quite probably why each artist from compilations showed up when browsing by artists.
    Message was edited by: Didou

  • Can I copy one frame of a movie using iMove and save the frame as a file that can be printed like a picture?

    Can I copy one frame of a movie using iMovie and save the frame as a file that can be printed like a picture?  If so, how do I do that?

    You could if you want a postcard sized print.
    Printers need a lot more "dots" per inch and even a 1920X1080 video doesn't have enough "dots" to make more than a postcard.
    Look at the "More Like This" links at the right side of this page for instructions.

Maybe you are looking for

  • Cannot view approval section in new SRM 7.0 web screens

    Hi - I'm new to SRM 7.0 so looking for some high level quick answers to some questions please We are setting up a very basic demo system for SRM 7.0 Extended Classic using a ECC 6.0 backend I have used srm 5.0 before but no that the ITS has been repl

  • Open Items(urgent)

    Hi, Before implementing the sap,,,we have 10 items,out of them 5 items have been cleared,and 5 open items are pending for clearing.after implementing sap system is showing all 10 items as open.how can we solve this problem????

  • How to display new component in Web UI correctly

    Hi everyone, I create a new component and add a new created view under this new component. Then I add "BuilHeader" BOL entity in this view. In configuration, I choose one field to display in this view. But why every field in this BOL entity displays

  • Order Records by List Item description

    Can someone please give me some tips on how to solve the following issue? I have a List Item that is populated using the following record group query: SELECT DOC_TYPE_DESC, TO_CHAR(DOC_TYPE_INFO_ID) FROM DOC_TYPE_INFO WHERE ACTIVE = 'Y' ORDER BY DOC_

  • Ipod nano in car

    I just purchased a new car with a MP3 connection.Am I able to connect iPod nano 1st gen to this outlet and if so what cable would I purchase for it?