Doodle Labeller (Doodler)

Doodle Labeller (Doodler)

  • Get Started
  • Guide
  • Blog

›Recent Posts

Recent Posts

  • What makes a "class"?
  • Splitting up large geoTIFF orthomosaics
  • merge a 3-band and 1-band image
  • no spaces in filenames!
  • batch "redoing"

no spaces in filenames!

July 30, 2020

Dan Buscombe

Spaces in image file names are problematic for the program because it uses filename string subsections to match images to outputs. White space is the escape character for most programming languages.

A one-liner for replacing white spaces with underscores in bash is

find -name "* *" -type f | rename 's/ /_/g'

The above command will replace spaces with underscores. Make a copy of your images beforehand for extra caution. The above code is a bash command, so on Windows you'd need git bash, WSL, or have m2-base installed (conda install m2-base)

Recent Posts
Doodle Labeller (Doodler)
Docs
Getting StartedHow to DoodleFull user guide
Community
Stack OverflowTwitter
More
BlogGitHubStar
Follow @magic_walnut
Marda Science
Copyright © 2020 Marda Science, LLC