I trying to copy a file from a directory to another directory in solaris.
DIR1="/u01/home files" DIR2="/u01/other files"
cp $DIR1/test.txt $DIR2
cp: cannot access /u01/home cp: cannot access files.
How do i resolves this error other than renaming the DIR1 not to have spacing?