The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-07-2009
philp philp is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 2
Smile

Thanks for tour help
1) Sorry I did'nt know about the code tags...I have added them.
2) == works for me? Perhaps my version of bash excepts both???
3) Brilliant!!! Thankyou
" Thre's no need for ls, and it is the cause of your problem, since all elements of a pipeline are run in subshells."
This fixed my problem. I dont actually understand why yet, but I will have a read. Thank You!!!!
4) I will remember to use $PWD in the future. In my original code I did not need to know the current directory...this was needed for this cut down version.

Thanks Again for all your help!!!