bcooperizcool
February 24th, 2011, 12:21 AM
I have two text files (names and contents).
so my script is:
if [[ -f "/Applications/$name/$contents" ]];
then mv "/Applications/$names/$contents" "/Applications/$names/1$contents"; cp "$theme_base/$theme/Folders/$names/$contents" "/Applications/$names/$contents"; echo "Setting up custom $names images";
else echo "No custom images for $names";
fi
done 3< $theme_base/.names.txt 4< $theme_base/.contents.txt
Instead of it going through each one for both files, I would need the $names variable to stay the same while it reads through the contents text file, and then go to the next line on the names file and repeat the whole process.
Thanks!
so my script is:
if [[ -f "/Applications/$name/$contents" ]];
then mv "/Applications/$names/$contents" "/Applications/$names/1$contents"; cp "$theme_base/$theme/Folders/$names/$contents" "/Applications/$names/$contents"; echo "Setting up custom $names images";
else echo "No custom images for $names";
fi
done 3< $theme_base/.names.txt 4< $theme_base/.contents.txt
Instead of it going through each one for both files, I would need the $names variable to stay the same while it reads through the contents text file, and then go to the next line on the names file and repeat the whole process.
Thanks!