[Ilugc] lynx for files not ending with .html

  • From: ramanraj@xxxxxxxxxxxxxxx (Ramanraj K)
  • Date: Thu Jul 1 06:38:26 2004

  ,----
| i  have problem using  lynx with  the files  i downloaded  with Htrack
| which resemble..  "prob.rt.who?pl=12" but no .html extension.
`----
The straight answer from Suraj was:
# lynx -force_html prob.rt.who\?pl=12

But,  if one  does  want to  rename  the downloaded  files with  .html
extension, or  process it  in other  ways, it may  be better  to avoid
using "file" command as suggested by Sridhar.  Take these two files:

test_1.php
    <html>
    <h1>Test file</h1>
    <?php
      echo date ("l dS of F Y");
    ?>
    </html>

test_2.php
    <?php
      echo date ("l dS of F Y");
    ?>

file test_1.php
test_1.php: HTML document text
file test_2.php
test_2.php: ASCII text

Using "file" means doing more dirty work, which we won't want  to do ;)
Therefore, let us Keep It Simple :)
__

Other related posts: