Into to shell programmin in unix

Discussion in 'Unix' started by PALLAVI BARDAPURKAR, Nov 18, 2010.

  1. PALLAVI BARDAPURKAR

    PALLAVI BARDAPURKAR New Member

    Joined:
    Nov 18, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    My problem is that how to save the shell script in vi editor and then how to run it in ksh
     
  2. sreek

    sreek New Member

    Joined:
    Nov 15, 2010
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    0
    after typing the script in vi editor use
    :wq for saving the file (in command mode)
    then make the file executable

    chmod +x filename

    execute using ksh

    ksh filename
    Happy scripting
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice