Answers for "bash replace spaces with underscores"

14

js replace space with underscore

var string = "my name";
string = string.replace(/ /g,"_"); //returns my_name
Posted by: Guest on April-24-2020
2

replace filename space with underscore bash

for file in *; do mv "$file" `echo $file | tr ' ' '_'` ; done
Posted by: Guest on March-02-2021

Code answers related to "bash replace spaces with underscores"

Code answers related to "Javascript"

Browse Popular Code Answers by Language