bash-exercises/replace_spaces

3 lines
74 B
Bash
Executable File

#!/bin/bash
for file in *; do mv "$file" `echo $file | tr ' ' '_'` ; done