O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hiding Things from the Shell

We have just looked at an example where we needed to hide a wildcard from the shell so that the find command could see it and deal with it instead. In that example we used quotes to hide the wildcard from the shell, but as we shall see there are a number of other ways of hiding things from the shell and a number of other reason we may wish to do so.

When we looked at shell variables earlier in the chapter we saw that if the shell sees any word beginning with a dollar sign it will assume it is a variable and will replace it with the contents of that variable. If there is no such variable defined then the shell will simply remove it. So if we had written a shell script that was a simple betting game and we wanted to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required