Find the answer to your Linux question:
Results 1 to 6 of 6
Hi there. I am after a bit of insight. I need to perform a specific task. I have part of what I need, but am stuck on the second part. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4

    Multiple file rename


    Hi there. I am after a bit of insight. I need to perform a specific task. I have part of what I need, but am stuck on the second part.

    Basically I need to search a folder for a specific file name. There are multiple files in this folders directory structure with the same name. I then need to rename the files to a new name but for them to rename in there original locations.

    These are index files for a mail server's mail folders (kerio). I need to rename all the index files to force Kerio to rebuild the index's after a mass mail store recovery.

    So What I have so far is the following.

    find "location" -name "filename"

    This will fine me all the files with the specific file name in the folder location I choose. Now I need to send the results into something else to be able to rename them in there current location which is the part I am stuck on. I believe I can do

    find "location" -name "filename" -exec "newaction" {} ;\

    Is this correct and what would the new action be?

    Usually I would just use midnight commander to search and rename, but the install does not work in OS X 10.4 so I have to revert to terminal commands.

    Any help would be greatly appreciated.

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Can you provide a sample of the original name and the final name for a single file, with the full path for both?

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4
    The name of the files are "index.fld" and it needs to be renamed to "index.bad" (with out the quotations).

    The location of the files are usually /usr/local/kerio/mailstore/store/domainname/

    with in that folder there will be multiple folders for each user and each of those files has an "index.fld" file in it. Then all the sub folders below that will have "index.fld" files in them as well.

    So you can have 100's if not 1000's of these files and they all need to be renamed.

    Any suggestions would be helpful.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by skeates View Post
    The name of the files are "index.fld" and it needs to be renamed to "index.bad" (with out the quotations).

    The location of the files are usually /usr/local/kerio/mailstore/store/domainname/

    with in that folder there will be multiple folders for each user and each of those files has an "index.fld" file in it. Then all the sub folders below that will have "index.fld" files in them as well.

    So you can have 100's if not 1000's of these files and they all need to be renamed.

    Any suggestions would be helpful.
    Something like this should do the trick:

    Code:
    find /usr/local/kerio/mailstore/store/domainname/ -iname \*.fld -print0 | while IFS= read -r -d '' file; do echo "$file" "${file%.fld}.bad"; done
    If you like what you see, then remove the "echo" to do the real work.

  6. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4
    Thanks for that.

    So running find ~/Downloads/domain -iname \*.fld -print0 | while IFS= read -r -d '' file; do echo "$file" "${file%.fld}.bad"; done

    gives this output which seems good.



    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/H13 C&-B/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A30 Client/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A32 Selling Agent/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A32 Selling Agent/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A32 Selling Agent/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A32 Selling Agent/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A32 Selling Agent/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A32 Selling Agent/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A40 Project Manager/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A51 Architect/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A51 Architect/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A51 Architect/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A51 Architect/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A51 Architect/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A51 Architect/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A53 Structural/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A54 M&-E/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A57 Acoustic Consultant/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A57 Acoustic Consultant/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A57 Acoustic Consultant/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A57 Acoustic Consultant/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A57 Acoustic Consultant/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A57 Acoustic Consultant/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A62 QS/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A64 Planning Supervisor/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A64 Planning Supervisor/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A64 Planning Supervisor/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A64 Planning Supervisor/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A64 Planning Supervisor/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A64 Planning Supervisor/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A75 Party Walls/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS A78 Fire/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D51 HCD/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/sync.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS D55 Planning/sync.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS E21 Specifications/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS E21 Specifications/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS E21 Specifications/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS E21 Specifications/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS E21 Specifications/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS E21 Specifications/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F31 Iromongery/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F31 Iromongery/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F31 Iromongery/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F31 Iromongery/properties.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F31 Iromongery/status.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F31 Iromongery/status.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F60 Tech Info/deleted.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F60 Tech Info/deleted.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F60 Tech Info/index.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F60 Tech Info/index.bad
    /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F60 Tech Info/properties.fld /Users/alexis/Downloads/domain/#public/03003_QAS/QAS F60 Tech Info/properties.bad



    But running the with out the echo give the following. find ~/Downloads/domain -iname \*.fld -print0 | while IFS= read -r -d '' file; do "$file" "${file%.fld}.bad"; done


    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 1: 443b8115: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 2: 443b8135: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 3: 443b8156: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 4: 443b8156: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 5: 443b8157: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 6: 443b8157: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 7: 443b8158: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 8: 443b8158: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 9: 443b8158: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 10: 443b8159: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 11: 443b8159: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 12: 443b815a: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 13: 443b815a: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 14: 443b815b: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 15: 443b815c: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 16: 443b815c: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 17: 443b8178: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 18: 443b8178: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 19: 443b817c: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 20: 443b8183: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 21: 443b818b: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 22: 443b8198: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 23: 443b81a3: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 24: 443b81ad: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 25: 443b81be: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 26: 443b81bf: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 27: 443b81bf: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 28: 443b81c0: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 29: 443b81c0: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 30: 443b81c1: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 31: 443b81c1: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 32: 443b81c1: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 33: 443b81c2: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 34: 443b81c2: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 35: 443b81c3: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 36: 443b81c4: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 37: 443b81c4: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 38: 443b81c5: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 39: 443b81c5: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 40: 443b81d2: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 41: 443b81d8: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 42: 443b81e4: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 43: 443b81e8: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 44: 443b81f7: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 45: 443b81fc: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 46: 443b8202: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 47: 443b8206: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 48: 443b820d: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 49: 443b8211: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 50: 443b8216: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 51: 443b821b: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 52: 443b8220: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 53: 443b8226: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 54: 443b822d: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 55: 443b8234: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 56: 443b823d: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 57: 443b8246: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 58: 443b8250: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 59: 443b825e: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 60: 443b826a: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 61: 443b826f: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 62: 443b827c: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 63: 443b8286: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 64: 443b828d: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 65: 443b829b: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 66: 443b82a1: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 67: 443b82b1: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 68: 443b82b6: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 69: 443b82bb: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 70: 443b82c3: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 71: 443b82cb: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 72: 443b82d6: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 73: 443b82e8: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 74: 443b82ee: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 75: 443b82f4: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 76: 443b82fc: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 77: 443b830f: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 78: 443b8318: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 79: 443b831e: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 80: 443b8325: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 81: 443b8329: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 82: 443b8339: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 83: 443b8340: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 84: 443b8349: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 85: 443b8353: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 86: 443b8359: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 87: 443b8360: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 88: 443b8365: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 89: 443b8373: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 90: 443b8379: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 91: 443b8384: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 92: 443b8389: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 93: 443b838d: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 94: 443b8392: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 95: 443b839b: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 96: 443b83a0: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 97: 443b83ab: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 98: 443b83b6: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 99: 443b83e7: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 100: 443b83e8: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 101: 443b83ef: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 102: 443b83f5: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 103: 443b8400: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 104: 443b8408: command not found
    /Users/alexis/Downloads/domain/#public/03003_QAS/deleted.fld: line 105: 443b841a: command not found

    I've cut the log down a lot as there were a lot more files and result's.

  7. #6
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    My fault, there should have abeen an "mv" in between echo and $file, but for some reason it slipped out. So, just pick my command above and change "echo" by "mv" which will have the same effect.

Posting Permissions

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