03 Feb How to replace spaces in all file names with underscore in Linux using shell script? by kayals in Linux, System AdministrationComments for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done Related posts:[vim] Delete blank linesWhy You Should Be Using Supported PHP VersionsUpgrade PHP 7.2.x to 7.4.x in centOS