![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need explanation | Mari.kb | UNIX and Linux Applications | 1 | 11-23-2007 06:41 AM |
| tr explanation please | convenientstore | Shell Programming and Scripting | 1 | 05-30-2007 08:42 PM |
| tr explanation please | convenientstore | Shell Programming and Scripting | 0 | 05-30-2007 08:12 PM |
| explanation of this line | castlerock | Shell Programming and Scripting | 1 | 03-22-2006 07:32 PM |
| AWK explanation | penfold | Shell Programming and Scripting | 2 | 04-05-2005 06:46 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
explanation for this line
Hi All,
can you please explain me the meaning of this line-- BackupLocation="/inpass/abc" Parent=$(expr $BackupLocation : '\(.*\)/.*' \| $BackupLocation) when i ran this as a command also it did not show me anything so could not get the purpose of this line. Explain it please. |
| Forum Sponsor | ||
|
|
|
|||
|
Here is the ouput under ksh93
Code:
$ BackupLocation="/inpass/abc" $ echo $BackupLocation /inpass/abc $ Parent=$(expr $BackupLocation : '\(.*\)/.*' \| $BackupLocation) $ echo $Parent /inpass $ Code:
$ dirname /inpass/abc /inpass |
| Thread Tools | |
| Display Modes | |
|
|