Posted By

aadsm on 01/18/09


Tagged

Bash loop spaces filenames


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

jamesming
sulfurito
kfaulk1


How to loop through filenames with spaces in Bash


 / Published in: Bash
 

  1. find ~ -name '* *' | while read FILE
  2. do
  3. echo $FILE rocks.
  4. done

Report this snippet  

You need to login to post a comment.