bash 스크립트를 사용하여 파일 이름의 공백을 바꾸는 방법 지정된 루트 디렉터리에서 시작하는 파일 및 디렉터리 이름의 공백을 반복적으로 밑줄로 대체할 수 있는 안전한 솔루션을 추천할 수 있는 사람이 있습니까?예: $ tree . |-- a dir | `-- file with spaces.txt `-- b dir |-- another file with spaces.txt `-- yet another file with spaces.pdf 다음이 됩니다. $ tree . |-- a_dir | `-- file_with_spaces.txt `-- b_dir |-- another_file_with_spaces.txt `-- yet_another_file_with_spaces.pdf 사용자: for f in *\ ..