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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux