Re: Converting html to text ?!?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2010-03-05 at 09:51 -0500, William Case wrote:
> How can I convert these files into *.txt?  I have tried several
> variations of:
> 
>         ]$ html2text -o ~/UMLC.txt file:///home/bill/NoteCaseDocs/UMLC.
>         *Cannot open input file "file:///home/bill/NoteCaseDocs/UMLC.*".
> 
> Any suggestions greatly appreciated on how to import these (I have
> several) *.ncd files into Lyx.

YMMV but I'd do something like:

for F in foo/*.ncd; do
    links -dump $F > $(echo $F|sed 's/\.ncd$/.txt/');
done

"for each file matching foo/*.ncd convert the dump the content as plain
text using links into a file with the same name but the extension .ncd
replaced with .txt"

I happen to like links but this should work with any html-text
converter. Just watch out that it does the right things for what you
want with the file names.

Regards,
Bryn.


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux