changing directory in bash (or other) script
Hi,
I have made a little a bash script, ment to change the current directory:
#!/bin/sh
d=$( date +%Y.%m.%d)
cd /_g/$d
I find however, that it only changes the directory within the script, and at the end of the script the location doesn't change.
I guess i need to export something for this to work?
|