Ls to find to copy


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Ls to find to copy
# 8  
Old 10-29-2013
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find and Copy Directories ONLY

I am trying to copy only the date specific folders/directories using the following command. However, the following copy command is also copying files from the root folder (OriginalFolder). find /OriginalFolder/ -type -d \{ -mtime 1 -o -mtime 2 \ } -exec cp -R {} /CopyTo/'hostname'__CopyTo/ \;... (2 Replies)
Discussion started by: apacheLinux
2 Replies

2. UNIX for Dummies Questions & Answers

Help with find and copy

Hi , As i am a dummy in shell scripting ,i was trying to find the files which are created today and hold them in variable and the copy them to a location using a partcular command this is what did. can any one help.There may be many files under the path SOURCE=/path/to/files/ A= find... (1 Reply)
Discussion started by: vikatakavi
1 Replies

3. Shell Programming and Scripting

Find and copy these files to particular directory

RedHat Enterprise Linux 5.4 I have some files with the extension .cdp in several directories in various mountpoints(filesystems) . I would like to find and copy all these files into a single directory /u03/diagnore/data. How can I do this ? (3 Replies)
Discussion started by: kraljic
3 Replies

4. Shell Programming and Scripting

Find and copy

> Advice please as much as possible to fill in large file in various folder to the server > Folder structure /www/1.org/htdocs /www/2.org/htdocs /www/3.org/htdocs > Can tell me there is a way to fill in large file into htdocs, and then climb > In each Diru and load for a long time. Thank you (1 Reply)
Discussion started by: lol100
1 Replies

5. Shell Programming and Scripting

Help with find and copy command

I entered the following command find . -type f \( -newer startdate -a ! -newer enddate \) -exec cp tmp {} \; I got the following error: cp: 0653-436 tmp is a directory. Specify -r or -R to copy. What's happening here? (2 Replies)
Discussion started by: bbbngowc
2 Replies

6. Shell Programming and Scripting

How to find files and then copy them to another

I must write any shell script. I want find files which have .txt extension and then copy them to other, whithout this extension, for example: I found linux.out.txt file, and now it must be copy to new, linux.out. So: linux.out.txt -> linux.out ubuntu.config.txt -> ubuntu.config ... (4 Replies)
Discussion started by: piespluto
4 Replies

7. UNIX for Dummies Questions & Answers

How to find and copy files from one directory to another

Ok i have three directories Destination - /u/dir1 (has subdirectories dir2 which also has subdirectory dir3) Source1 - /u/test/files/dir1/dir2/dir3 Source2 - /u/out/images/dir1/dir2/dir3 What i would like to do is copy everything from Source1 and Source2 into the Destination directory.... (3 Replies)
Discussion started by: ziggy25
3 Replies

8. Shell Programming and Scripting

Help with Find All/Copy Script

Hi Gang, I am an old unix user and just recently returned in the flavor of a Mac. I have tons of pictures in the .orf format and would like to write a script to: Search the Hard drives for that file type Then, depending on date, copy it to a specific folder If there is an exact... (2 Replies)
Discussion started by: jlfx
2 Replies

9. UNIX for Dummies Questions & Answers

need to help to find and copy to a file

I am trying to search for files and copy them into a text file. Can anybody help me how to do that. find /test/sds/data -name "*.*" -mtime -365 -exec ls -altr {} \ this is my find command and want to copy the result to a file. (2 Replies)
Discussion started by: pujars1
2 Replies

10. UNIX for Dummies Questions & Answers

HOw to find and copy

Hi, I need to find files in a directory, between dates like 4/15/06 and 5/02/06, and copy them to a different directory. Is there a way to doa find and a copy together? Thanks, Neil (1 Reply)
Discussion started by: aaajohnson
1 Replies
Login or Register to Ask a Question
POST-REVIEW(1)							   User Commands						    POST-REVIEW(1)

NAME
post-review - post/update reviews to Review Board SYNOPSIS
post-review [-pond] [-r review_id] [changenum] OPTIONS
Review Request Options -p, --publish publish the review request immediately after submitting -r ID, --review-request-id=ID existing review request ID to update --revision-range=REVISION_RANGE generate the diff for review based on given revision range Server Options --server=SERVER specify a different Review Board server to use --submit-as=USERNAME user name to be recorded as the author of the review request, instead of the logged in user --username=USERNAME user name to be supplied to the reviewboard server --password=PASSWORD password to be supplied to the reviewboard server Basic Options --version show program's version number and exit -h, --help show this help message and exit -o, --open open a web browser to the review request page -n, --output-diff outputs a diff to the console and exits. Does not post Field Defaults Options --target-groups=TARGET_GROUPS names of the groups who will perform the review --target-people=TARGET_PEOPLE names of the people who will perform the review --summary=SUMMARY summary of the review --description=DESCRIPTION description of the review --description-file=DESCRIPTION_FILE text file containing a description of the review --testing-done=TESTING_DONE details of testing done --testing-done-file=TESTING_FILE text file containing details of testing done --branch=BRANCH affected branch --bugs-closed=BUGS_CLOSED list of bugs closed --change-only updates info from changelist, but does not upload a new diff (only available if your repository supports changesets) --tracking-branch=TRACKING Tracking branch from which your branch is derived (git only, defaults to origin/master) --p4-client=P4_CLIENT the Perforce client name that the review is in --p4-port=P4_PORT the Perforce servers IP address that the review is on -d, --debug display debug output --diff-filename=DIFF_FILENAME upload an existing diff file, instead of generating a new diff Git Options --guess-summary guess summary from the latest commit (git/hgsubversion only) --guess-description guess description based on commits on this branch (git/hgsubversion only) Git and Mercurial Options --parent=PARENT_BRANCH the parent branch this diff should be against (only available if your repository supports parent diffs) Subversion Options --repository-url=REPOSITORY_URL the url for a repository for creating a diff outside of a working copy (currently only supported by Subver- sion). Requires either --revision-rangeor --diff-filename options Perforce Options --diff-only uploads a new diff, but does not update info from changelist ClearCase Options --label=LABEL Specifies the label used for ClearCase. DESCRIPTION
post-review is intended to post a review from a local repository to the Review Board server, or update such an existing review. It works differently with different version-control systems. For CVS and Subversion, the review to post is the uncommited change in a working copy. With distributed VC systems (currently Git and Mercurial are supported), the review is a topic branch. Posting it is, technically, pushing it to the repository at the Review Board server. PerForce and ClearCase also seem to be supported but the author of this page fails to understand the details. Refer to undocumented(7) for more information on using them with this program. [A more detaild description can help] CONFIGURATION
post-review needs to be told of the address of the server to post to. This can come from several possible places: GIT property reviewboard.url For example, the following command will set a repository-specific property: git config --add reviewboard.url http://reviewboard.example.com Refer to git-config(1) for the full details. Subversion Property reviewboard:url The subversion property reviewboard:url may be set on the top-level directory. svn propset reviewboard:url http://reviewboard.example.com . Perforce Counters Rumour has it they exist and can even help in the configuration here. .reviewboardrc $HOME/.reviewboardrc The file .reviewboardrc can exist in either the top-level directory of the project or under the user's top-level directory. This file uses python syntax for assignments. It has two optionalmethods of defining the repository URL: REVIEWBOARD_URL A simple variable pointing to the server: REVIEWBOARD_URL = "http://reviewboard.example.com" TREES A directionary of subversion repositories to REVIEWBOARD_URL-s: TREES = { 'http://svn.example.com': { 'REVIEWBOARD_URL': 'http://rb.example.com', }, 'username@cvs.example.com:/cvsroot/cvs': { 'REVIEWBOARD_URL': 'http://rb.example.com', }, } EXAMPLES
post a new review from a working subversion copy: post-review This generates a new draft review. Refer to the "Field Defaults" options above to set non-empty values to some fields in the review. Alter- natively set them later through the web interface. Update that review, assuming its review number is 17: post-review -r 17 To post a review from a your GIT feature branch: git checkout -b new-feature main-branch emacs -f butterfly '.......' # or ed git commit post-review [That said, I can't really follow the documentation as to how post-review works on git/hg: how does it post the last diff only?] This does not create a new diff. Rather, it updates the existing one. In the following two examples, the review was not published. AUTHOR
post-review was written by Christian Hammond and David Trowbridge. This man page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>. SEE ALSO
On-Line Documentation <http://www.reviewboard.org/docs/manual/dev/users/tools/post-review/> post-review 0.8 March 2010 POST-REVIEW(1)