Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Writing HTML with script

    So I am trying to learn the Bash shell and I am learning through this site and I've gotten stuck on trying to write an HTML file with a script.
    I am on this lesson right now linuxcommand .org [the 3rd lesson on writing a HTML in shell] and do not understand when it says how to use the script you.....

    ubuntu$ make_page > page.html

    It gets fuzzy about this part and I don't understand, any elaboration on this would be greatly appreciated

    Also if you have any other sites that could help me learn the shell that'd be cool, theres just so much out there and I don't know where to start

  2. #2
    The make_page is the name of the script that is display above in the text box. If you create a file named make_page and paste in the stuff above and then run the command:
    chmod 777 make_page
    You can run the script like:
    And see the output come to the screen.
    If you use the > it just redirects the output from the screen to a file which in this case is page.html.
    If you type at the command line:
    cat page.html
    You will see the output of the script

  3. #3
    Cool, thanks alot, that makes more sense!

  4. $spacer_open

Posting Permissions

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