Thanks, for the help,
One question, What is basename? I want to pull the name of the directory form the variable $i which is the name of the directory I am taring. Is basename just an added name consisting of anything?
Thanks,
Phil
Hi I am trying to make the name of every directory unique for the variable name TODAY. Please see my script below. I want the name of the current directory it is compressing and the date like ACD2206__Prod_Rev03_Processed_062606
For the life of me I can not get it to work.
Below is my...
Thanks for responding,
I am not sure exactly what you are doing with the lines
for i in ${PWD}/*
do
if [ -d $i ]
then
cd $i
/path/to/your/tarscript
The for and the if lines are confusing?
for i in all the subdirectories ? What is i ?
if the directory i ? not sure what this id doing...
Hi,
I am running solaris 8, Scripting in the Ksh. New to scripting. I have a script running on files within a directory. Just simple tarring and moving. I specifically cd to that directory. How can I cd to a directory above that and run the script in all the subdirectories, not just that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.