FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Iterate Over Files That Contain Spaces · GitHub

Instantly share code, notes, and snippets.

Created January 28, 2011 21:56
Show Gist options
  • Select an option

    Clone this repository at <script src="https://gist.github.com/allthingscode/801072.js"></script>
  • Save allthingscode/801072 to your computer and use it in GitHub Desktop.

Select an option

Clone this repository at <script src="https://gist.github.com/allthingscode/801072.js"></script>
Save allthingscode/801072 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
#!/bin/bash
#
for item in `find ./ -type f | sed -e 's/ /[SPACE]/g'` ; do
# unescape spaces
file_path=`echo $item | sed -e 's/\[SPACE\]/ /g'`
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Back | FazBrowse Home | New Git URL