Friday, January 24

The Mac Observer: Mac OS X Command Line 101 - Working With Variables In The Shell csh and tcsh also provide modifiers that allow you to extract parts of the variable's value without a lot of rigmarole using things like sed, basename, dirname, and so on. They can be used by either $variable_name:x or ${variable_name:x}, where 'x' is one of the following values:

No comments: