IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New The problem is with the if
Assuming you're trying to figure out if the $line subdir is non-empty, try this:

if [ -n "$(ls -A $homedir/$line$homedir/$line)" ]; then

"if * then" ends up attempting to execute the files in that subdir. If one does not have the execute bit set, you'll get the Access Denied. Even if it worked, it would not find .files, which it looks like you're interested in given the presence of .ssh in the egrep pattern.
New saved once again by someone who is not a duffer, thank you
thought the then would only execute the mv command. I am excluding the .ssh directory.
always look out for number one and don't step in number two
New Welcome. You can scratch all the dirs from egrep
The preceding find -type f already excludes all directories.
New I didnt want the files in those directories moved
always look out for number one and don't step in number two
     this bash script is driving me nuts foo is the name of the directory I want to play with - (boxley) - (6)
         Yuck. Give me perl! - (crazy) - (1)
             I will try that, thanks -NT - (boxley)
         The problem is with the if - (scoenye) - (3)
             saved once again by someone who is not a duffer, thank you - (boxley) - (2)
                 Welcome. You can scratch all the dirs from egrep - (scoenye) - (1)
                     I didnt want the files in those directories moved -NT - (boxley)

It is, however, a surprise that he's not been beaten to death with his own stapler.
51 ms