Artificial intelligent assistant

Removing apostrophe from all file names I tried to remove apostrophe from all files' names in the directory. for i in *; do mv $i `echo $i | tr -d "'"`; done After executing this command nothing is renamed. Do you know what's wrong here?

You could try something like this (`bash`):


shopt -s nullglob
for i in *\'* ; do mv -v "$i" "${i/\'/}" ; done


This uses shell string replacement. You probably don't want to glob files that don't have `'` in them since the `mv` would fail. Without the `nullglob` option, the glob pattern itself would be passed to `mv` if there are no matching files.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 61565924883a7b065b61d449112e944c