Skip to content

Instantly share code, notes, and snippets.

@fhferreira
Last active May 20, 2022 08:54
Show Gist options
  • Select an option

  • Save fhferreira/f429a059b9c1efcfa656 to your computer and use it in GitHub Desktop.

Select an option

Save fhferreira/f429a059b9c1efcfa656 to your computer and use it in GitHub Desktop.
Rename "-" to "_" hyphens to underscores in linux
#go to your directory with cd /tmp/images (Sample) and run this command.
for i in *-*;do mv $i ${i//"-"/"_"};done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment