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 -->
  #1 (permalink)  
Old 05-27-2009
samplify samplify is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 4
Lightbulb CD (change directory) - Not advisable for executing a command

Hi,

This is a quick one.
I have got a review comment in one of the scripts that i wrote:

"In UNIX script it not advisable to use cd to a directory and then run command."

Is this true?
I was trying to cd to log directory and use some cat or head or ls command.

Many Thanks,
Sam