Need to search "Directory" for common character/string and replace with supplied string
Posted on 2004-08-15
I am new to this system... as well as Linux, so forgive the expected nievity of the question.
I need to search a list of directory names (no sub directory search needed) for a common string. Once detected, I would like to replace the found string with a given string.
Example (directory names): n113, n21, N342
change to: Nordic113, Nordic21,Nordic342
Please note the lack of case sensitivity. If I have to run two commands (one for upper case, and another for lower) then that is not a problem. Also, I am not seeking to change any of the included filenames that reside within the directories.
Any help would be appreciated.