I ran a sed command recently and I mistyped the command (yes it happens).
So now i have directory and file names that look like 'Call of Duty'
. How can I recursively go back and rename all files and directories to remove the '
?
this is the command i ran find . -type f -name "*.css" -exec sed -i'' -e 's|http://cdn|//cdn|g' {} +
Are you sure that that is actually the filename? On recent Linux distributions
ls
displays filenames with spaces in quotes by default. Tryls -N
to be sure.From the man page: