looping over file paths that contain spaces


/ Published in: Bash
Save to your folder(s)

spaces in filenames breaks for loops on 'find' results


Copy this code and paste it in your HTML
  1. find . -print0 | while read -d $'\0' file; do echo "$file"; done

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.