AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Named Parameter @Script

    Posted Mon March 18, 2013 10:55 AM

    Originally posted by: SystemAdmin


    Dear all,

    how can i use named parameter like
    
    ls -l
    

    in Scripts?
    So i can run a script like
    
    ./testscript -source /etc -dest /home
    

    for example.
    #AIX-Forum


  • 2.  Re: Named Parameter @Script

    Posted Mon March 18, 2013 12:43 PM

    Originally posted by: jklotz


    Check the getopts manual page, it's a bit esoteric for who wants a quick explanation, but there's an example relatively easy to work with.
    #AIX-Forum