Sorry if this has been answered but I have not found an example for what I'm trying to do.
I'm trying to:
1. Get a list of all filenames(not directories or . and ..) currently in a directory.
2. Use the contents of that list to move just those files to another directory.
This seems so easy, maybe I'm just making it hard. I cannot see how to get just the filenames using the dir command. I know I need to do a while loop to get thru the list once I have it.
Any help or direction would be greatly appreciated.
I'm trying to:
1. Get a list of all filenames(not directories or . and ..) currently in a directory.
2. Use the contents of that list to move just those files to another directory.
This seems so easy, maybe I'm just making it hard. I cannot see how to get just the filenames using the dir command. I know I need to do a while loop to get thru the list once I have it.
Any help or direction would be greatly appreciated.