So I asked this question on how to find a directory that contains a specific character.
Now I'd like to change that character to something else (not the whole name just that one character)
Example:
find "a"
aaa
bab
replace with "c"
ccc
bcb
How do I do that?
This is the code I have atm
read -p "find what character: " findwhat
find . -name "*$findwhat*" -type d -print
{}tells-execdir/-execwhere to insert the filename in the command; the;tells it where the commands ends - and you need to escape it with\because otherwise the shell will treat it as a command separator. – Joe P Jun 11 '17 at 15:56