in reply to Using perl script to convert .html file to tab delimited file

Hello, ssaahh. Welcome to the Monastery.

The script dicthtml2tab.pl is quite simple. It takes the input file as argument and writes to standard output. Therefore, assuming you are on a unix-like OS or at least using a standard shell, the steps to use it are:

  1. Download the file
  2. Make sure you can run it: chmod a+rx dicthtml2tab.pl
  3. Run it: ./dicthtml2tab.pl myinputfile > myoutputfile

Note that the dicthtml2tab.pl script uses regex to parse HTML which is, at best, fragile. If this is a common enough task then it might be better for someone to write and publish a new script which uses a proper HTML parser instead. But that's for another day.


🦛

Replies are listed 'Best First'.
Re^2: Using perl script to covert .html file to tab delimited file
by ssaahh (Initiate) on Oct 01, 2020 at 13:42 UTC

    First of all,thanks for replying I use windows 10 so how to use it there.

      strawberry perl or perl via cygwin
        As I said I donot know anything about coding,Can you tell me how to actually run script and input that file.I installed strawberry perl and opened strayberry perl command line.And pasted the location of that dicthtml2opf.pl file location and file to be inputted.It gives error as it picks up that location as some command.Also,where will the output file be stored?