Misc Substitution

   

Korn Shell: Unix and Linux Programming Manual, Third Edition, The
By Anatole Olczak

Table of Contents
Appendix G.  Pdksh Quick Reference


$(command)

replace with the standard output of command

$((arithmetic-expression)

replace with the result of arithmetic-expression

$(<file)

replace with the contents of file

`command `

replace with the standard output of command

~

replace with $HOME

~user

replace with the home directory of user

~?/P>

replace with $OLDPWD (previous directory)

~+

replace with $PWD (current directory)


       
    Top
     



    Korn Shell. Unix and Linux Programming Manual, Third Edition
    Korn Shell. Unix and Linux Programming Manual, Third Edition
    ISBN: N/A
    EAN: N/A
    Year: 2000
    Pages: 177

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net