Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ppopper

    Performing operations on multiple directories

    That works great, thanks. Would there be away to identify that nothing is in a directory and skip tarring it? Thanks!!
  2. ppopper

    Performing operations on multiple directories

    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
  3. ppopper

    Performing operations on multiple directories

    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...
  4. ppopper

    Performing operations on multiple directories

    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...
  5. ppopper

    Performing operations on multiple directories

    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...

Part and Inventory Search

Back
Top