Script to Get the contents of a folder and move files

I need script to move files from the user’s home folder. I thought maybe I could do a ls command and out put it to a text file. Then pull the data I need from the file. What I want to do is leave my “default” MacAdmin, Admin and Test user folders, but move the library folder out of the other user folder. And move in the user template’s english.lproj folder. The only problem is I do not always know the name of the other user folder. This is a post action script for net restore. I back up the user data first, the restore it, but I want to replace the library with a fresh copy.

I’m not sure I understand the problem. Could you break it down and post whatever you have so far? Are you trying to write a shell script or an applescript?

I am using a shell script. This is what i have so far.


ditto -x -z  "/Volumes/Storage/bk.cpgz" "/Volumes/Macintosh HD/Users/"

ls -l "/Volumes/Macintosh HD/Users/>list"

This is where i get stuck i do not know how to get the contents of the file list. I know it will have my MacAdmin Account plus one other, That is the account i am trying to get to contune my script.