My Tech Notes
Search This Blog
Bash: loop through file names with spaces
#!/bin/bash IFS_BAK=$IFS IFS=$(echo -en "\n\b") for f in $(ls) do echo "$f" done IFS=$IFS_BAK
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment