You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

html2txt.sh 252B

4 years ago
1234567891011121314
  1. #!/bin/sh
  2. # h2t, convert all htm and html files of a directory to text
  3. for file in `ls *.htm`
  4. do
  5. new=`basename $file htm`
  6. lynx -dump $file > ${new}txt
  7. done
  8. #####
  9. for file in `ls *.html`
  10. do
  11. new=`basename $file html`
  12. lynx -dump $file > ${new}txt
  13. done