I'm trying to create a script file that will checkin files to ClearCase, and I'm stuck on the "while read" logic.
Here's the part I'm stuck on:
find $2/* -type d > ~/dir_list
while read ~/dir_list
cleartool mkdir -nc $dir
cleartool protect -chmod 775 $dir
done < ~/dir_list
Originally the above script was setup to put the dir_list file in the ClearCase checkout directory,
And it did work that way, but I'm trying to set it up so that it puts the file in the user's home directory.
To see the entire script, check out the following link:
What am I doing wrong with the variable names in the while loop?