I have this shell script which i am going to package into an application:
cd /Users/william/Desktop Cleaning; mkdir "date"; cp ~/Desktop/* ~/"date";
how would i point to the directory with the name unknown to cp?
I have this shell script which i am going to package into an application:
cd /Users/william/Desktop Cleaning; mkdir "date"; cp ~/Desktop/* ~/"date";
how would i point to the directory with the name unknown to cp?
So let me get this straight. You are sitting in a directory whose pathname contains the string /Users/william/Desktop
and you want to change directory to one with that string replaced by the string Cleaning
. And after you have moved to that directory you are going to create a directory named date
in that directory. And then whether or not either of those commands worked, you are going to ignore your original working directory, your new working directory, and the directory you created and then copy all files in the Desktop
directory in your login directory into the directory named date
in your login directory.
What unknown name is it that you are talking about?
Can you give some more details?