hi i hav a file called focus. which is the output file. i want to convert this file to html file and mail it. help with code and explanatio. i am basic in unix
Hi, welcome to these forums...
Please show a representative sample of input, desired output, attempts at a solution and specify what OS and versions are being used
fr ex : my output is
No of files : 1
No of folder : 2
No of system : 3
want to convert this into html file with tables and colours.
condition is html file must br mail.
---------- Post updated at 02:00 AM ---------- Previous update was at 02:00 AM ----------
can anyone help?
Still not clear.
Please post sample input and expected output.
this is my file.
=============
No of file : 1
No of Folder : 2
No of Checks : 3
This is how my output file looks. its a text file. i want to mail this output file in html format..
i should receive a mail as a table with those information in outputfile.
Is it just text you want to display? How about something like
<html><head><title>My Converted Text</title></head><body>
in front of your text and
</body></html>
after?
If you want to control how it looks, you can put a <pre>
right after you start the body and a </pre>
after your text and before you close the body.
HTH
<html>
<head>
<title>My Converted Text</title>
</head>
<body>
<pre>
cat focus
</pre>
</body>
</html>
Is this correct?? the text is in the file called focus. i am trying to import text from the focus..
You can put <html>..<pre>
in file1, </pre></body></html>
in file2 then
cat file1 focus file2 >mypage.html
.
or
echo "<html>...<pre" >mypage.html
cat focus >>mypage.html
echo "</pre>..</html>" >>mypage.html