[ubuntu-uk] Bash and Path checks
Cornelius Mostert
corneliusmostert at googlemail.com
Mon Apr 20 09:12:55 BST 2009
>Are you doing this to avoid the mkdir if the directory you are creating
>already exists? If so, then the is an option -p which means it is not an
>error if the directory already exists. It also creates parent
>directories as needed, so:
>
> mkdir -p $newPath/Sound/MP3
> mkdir -o $newpath/Sound/wav
>
>will do what you want without the need to test.
>(BTW, it's forward slashes / in Linux, not backslahes!)
>Of course, I may have misunderstood what you are trying to achieve.
>
>Regards,
>Tony.
Thanx I will try the -p option.
As I understand it the \ is to pipe whatever onto what is infront of
the \ so it reads Get the Variable and Pipe the following onto it ...
You have understood my question...
Thanx
More information about the ubuntu-uk
mailing list