Created
March 22, 2016 12:22
-
-
Save helloqiu/376c456f955bf2a52bcd to your computer and use it in GitHub Desktop.
A silly shell to replace space with "_".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
filename=$1 | |
while read name | |
do | |
echo $name | sed -e 's/ /_/g' | |
done < "$filename" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment