No matter what I do I can't get a file list that includes spaces to save right in a variable.

Here is my script so far

Code:

#!/bin/bashcd ~/movies

#####two different options that have the commands work on command line but not saved to the variable right. Output of both is the full path to each file from the current $PWD with escape characters#for i in `ls -1Rb | sed /^$/d | gawk '/:$/{dir=substr($0,1,length($0)-1)} !/:$/{printf "%s/%s\n",dir,$0}' | grep .nfo`for i in `find . -type f | sed 's/[!@\ "()]/\\&/g' | grep .nfo`

Who is online

Users browsing this forum: No registered users and 5 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum