It doesn't change directory, any ideas? I'm not great at shell scripting so I could be going about this the wrong way.Code:#!/bin/sh # Templates directory templatedir="/etc/e-smith/templates" # Current directory currentdir=`pwd` # Merge to previous directories to get a new one newdir=$templatedir$currentdir # Show the new directory echo $newdir # Change to it cd $newdir
Cheers


LinkBack URL
About LinkBacks
Reply With Quote
