The relevant bit is:
for n in *; do mv “$n” ${n// /_}; done
Noting that the double / after the variable name is what tells it to substitute all (rather than first-only).
Roland Turner |
|
about | contact | |
The relevant bit is:
for n in *; do mv “$n” ${n// /_}; done
Noting that the double / after the variable name is what tells it to substitute all (rather than first-only).