Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I have a few tasks that I preform daily which at the moment are commands and such that I type in and look at the output. What I want ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    38

    Create Terminal Program

    Hello,

    I have a few tasks that I preform daily which at the moment are commands and such that I type in and look at the output.

    What I want to do, which I have done on AIX but never on a Linux platform is create an script which all it does is display something like:

    1. Type option 1 for x
    2. Type option 2 for z

    etc.

    What I did in the AIX version of my script was create multiple scripts which were called from the options and display the results that way. I also had functions which placed banners and error messages etc etc.

    Is there a good way of doing this in Linux (or a different way)?

  2. #2
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Assuming you're using bash:

    Testing and Branching

    and of course, you can split in several subscripts, even functions...
    EOF

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    38
    Quote Originally Posted by hugortega View Post
    Assuming you're using bash:

    Testing and Branching

    and of course, you can split in several subscripts, even functions...

    Thats a helpful link. Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...