Skip to content

Instantly share code, notes, and snippets.

@Ricky-Wilson
Created March 20, 2020 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ricky-Wilson/0731fe6be3fe15403d8fc6a906b4e641 to your computer and use it in GitHub Desktop.
Save Ricky-Wilson/0731fe6be3fe15403d8fc6a906b4e641 to your computer and use it in GitHub Desktop.
Replace white space in file names
#!/bin/bash
find $1 -name "*.apk" -type f -print0 | \
while read -d $'\0' f
do mv -v "$f" "${f// /-}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment