Link to basic bash scripting e-guide
Hi,
Can any one guide me to download and learn basic bash scripting.. and e-tutorial or pdf or doc .. Thanks |
There are several guides to bash. Try one of these:
http://www.physics.ohio-state.edu/~n...ompt-HOWTO.pdf http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html |
|
Thanks al2.. Its helps me a lot to server my job..
Moreover.. chrism01.. can you help me in the 2nd link.. its a zip file which when I saved.. then the path is not correctly mentioned or what.. no link is opening... can you guide me... how to work with http://rute.2038bug.com/index.html.gz Thanks anyway to both of you for you assistance |
Quote:
I've never seen the .gz extension on html pages.... This is weird: If I save the page to disk and then try to open it, it offers only to open with Ark. This fails, as does double-clicking. I also cannot open the saved file from within FF (even though FF opens it from the site just fine). If I rename the file with just the .html extension, it opens normally. AND--if I try to put it in the address line without the .gz, it gives me this: Quote:
Solution: save and rename the file, or use Firefox/Mozilla |
Quote:
If you try to open the file later on (you are no longer web browsing, but file browsing), there is no server to tell the browser how to interpret the file (i.e., give it a Content-type). The only hint it has is the file extension (even if the extension misrepresents the file). So if you have an html text file with a different extension (e.g., .gz), the browser will assume (without looking at the contents of the file) that the MIME-type corresponds to that extension (e.g., application/x-gzip) instead of text/html. If you try this sort of thing in something like wget, you will have to decompress the file yourself. E.g., Code:
$ wget http://rute.2038bug.com/index.html.gz |
OK--replace "weird" with "I've never seen it before." (In thousands of hours of web browsing.)
Is the browser response to a g-zipped file in the W3C standards? When Firefox saves a file with the .gz extension--but which is no longer a g-zip file--is that standards-compliant? If so, find me the people that maintain these standards.....:mad::mad: |
Quote:
Quote:
For example, some servers chose to send files which end in “.c” over as “text/plain”, and others chose to use “text/x-csource” or “application/octet-stream”. The difference often means the difference in a browser showing the contents of the file or opening up the default editor to show the contents. A similar thing happens for postscript files (e.g., if sent as “text/plain” you are shown the source code for the postscript file, but if sent as “application/postscript” it is opened by a postscript viewer). If I wanted, I could mismatch all the file extensions on my server, as long as I told you how to use them correctly. The only time the browser will try to read the extensions itself is when the Content-Type is given as “application/octet-stream”. All this is in the “standards”. Mostly it is in the HTTP standard (RFC 2616). Quote:
|
Also check this: http://httpd.apache.org/docs/2.2/mod/mod_deflate.html (for gzip compression)
|
Quote:
One is named index.html, which contains 640 bytes of HTML that display the message you quoted. The other is named index.html.gz, which is the 20378-byte gzip file. |
|
All times are GMT -5. The time now is 05:01 PM. |