Results 1 to 3 of 3
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.
...
- 09-22-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
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
- 09-22-2011 #2Just Joined!
- Join Date
- Aug 2011
- Posts
- 48
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:
./make_page
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
- 09-22-2011 #3Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
Cool, thanks alot, that makes more sense!


Reply With Quote