Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. chinobling

    Replace characters in a directory name

    Hey, You're awesome, i was screwing up the script by passing: "*bb*" as $2 when it was already specified in the script as "*$2*" so that's what it was! Thanks a lot!!!
  2. chinobling

    Replace characters in a directory name

    It didn't work I got this an output... mv: cannot move `./aa/bb' to a subdirectory of itself, `./aa/bb/bb' mv: cannot move `./aabb' to a subdirectory of itself, `./aabb/aabb' mv: cannot move `./aabbcc' to a subdirectory of itself, `./aabbcc/aabbcc' mv: cannot move `./aabbccdd' to a subdirectory...
  3. chinobling

    Replace characters in a directory name

    Thnx for the replies, but how would i use the output of sed to move/rename the directories to the sed result? Thnx again.
  4. chinobling

    Replace characters in a directory name

    i.e.: ./aa/aabb ./aabb/bbcc ./aabbcc/ccdd ./aabbccdd/ddee would like to replace characters bb with zz or $3 Thanks.
  5. chinobling

    Replace characters in a directory name

    Hi, I'm trying to write a script to find directories/subdirectories with a certain pattern in the name, then replace the pattern in the directory name. I figured out how to find them using find $1 -type d -name "*$2*" but it's the replacing that's giving me a migraine... please help! TIA.

Part and Inventory Search

Back
Top