I have a number of files with double quotes in the filename like this:
"This_is_a_long_filename_with_quotes".mp3
I try to use the linux command rename, I can erase the underscore easily using
rename 's/_//g' *
but when I try with \" nothing happens (I use -n to see the changes):
rename -n 's/\"//g' *
nothing is renamed
thanks!
ls | grep \"
returns nothing. How aboutecho *\"*
orls *\"*
? If none of these commands show anything, you don't have files with double quotes in their names; you have files with pairs of single quotes in their names. Tryls | grep \'
,echo *\'*
orls *\'*
. If those commands find your files, rename them withrename -n "s/'//g" *
.rename
operations while cutting and pasting the exact quote characters (open and close).