User Tools

Site Tools


bash:files:rename_spaces_in_a_filename_with_hyphens

BASH - Files - Rename spaces in a filename with hyphens

Replace spaces in a filename with hyphens.

for f in * ; do mv "$f" $( echo $f | tr ' ' '-' ) ; done

bash/files/rename_spaces_in_a_filename_with_hyphens.txt · Last modified: 2022/06/13 11:47 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki