Results 1 to 6 of 6

Thread: Defining multiple files in the command line.

  1. #1
    Join Date
    Aug 2012
    Beans
    3

    Defining multiple files in the command line.

    I have been doing some file recovery with photorec. Before you can do anyhting with the recovered files you have to take ownership of them using- sudo chown -R username recup_dir.* . I have recovered multiple files and was wondering how to define batches of them in the above command? Or maybe there is another command for that?

  2. #2

    Re: Defining multiple files in the command line.

    Code:
    chown -R username recup_dir.*
    is a "batch mode" type of operation, just rerun it after every recovery operation(s), but before restoration.

    username would be your LoginID
    Windows assumes the user is an idiot.
    Linux demands proof.

  3. #3
    Join Date
    Aug 2012
    Beans
    3

    Re: Defining multiple files in the command line.

    Gee whiz, I am such a doofus sometimes. I thought you had you replace the * with the number of the file that you wanted to delete. Got it now. Thanks for the help.

  4. #4
    Join Date
    Aug 2012
    Beans
    Hidden!

    Re: Defining multiple files in the command line.

    Please mark your threads as "Solved" using the "Thread Tools" menu at the top of the thread, if all is working OK for you. Thanks, coldcritter64.

  5. #5
    Join Date
    Aug 2012
    Beans
    3

    Re: Defining multiple files in the command line.

    Sorry. Done now. Thanks again.

  6. #6

    Re: Defining multiple files in the command line.

    Quote Originally Posted by Wellywilly View Post
    Gee whiz, I am such a doofus sometimes. I thought you had you replace the * with the number of the file that you wanted to delete. Got it now. Thanks for the help.
    Glad it worked out!
    Windows assumes the user is an idiot.
    Linux demands proof.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •