The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
how to use cd command in shell script
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
how to use cd command in shell script
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
09-09-2007
porter
Registered User
Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by
LAKSHMI NARAYAN
#!/bin/ksh
dirpath=$1
cd dirpath
In your case, however you just need
Code:
#!/bin/ksh dirpath=$1 cd $dirpath
porter
View Public Profile
Find all posts by porter