Hello, i have mail file named example "1453102828.H684028P24870.host.provider.com,S=32726" that file is not proper html formated in it, but have parts which is HTML. im looking for the fastest way to view this file as a processed html (as if i view it as .htm file via web browser), but can i do it via command line some easy way? im asking this, because the html in that file is really hard to read, too complicated so far i coppied it to my webpage folder, changed its ownership and then typed the address in webbrowser. but its too complicated, any command i can do via command line as root?
You can use 'vi' editor to view the content. Other editor in linux are nano, pico. You can use either of them to view files content.
Ah..my bad. Try lynx in the command line. Lynx is a fully-featured World Wide Web (WWW) client for users
thx, lynx filename did not worked. i have to use: lynx -force_html 1453102828.H684028P24870.host.provider.com,S=32726 this is not easy to remember, but thx alot for help (also in other topics) BTW, is there any way to just print output of lynx and quit, instead of keeping lynx open letting me to scroll tru the file? //answer: yes, it appears i can use "-dump" switch
Thanks, # alias viewhtml="lynx -force_html" and then i do: # viewhtml myfile and it works. PS: issue with lynx is that it shows non-html parts of file as stucked into one block of text (without breaks)
In older version of Windows also we used Webpages in Netscape browser, not much of use for command line except older OS.