How to loop through filenames with spaces in Bash

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

Copy this code and paste it in your HTML
  1. find ~ -name '* *' | while read FILE
  2. do
  3. echo $FILE rocks.
  4. done

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.