Hello,
Currently i have a script which will disply the results in plain text format.
I want to format the result in more readable format like Making bold headings and format with colors etc. Something like html and send that content as email.
Please help me how i can do that.
I am using below script for sending the content:
filesend=filename
cat mail_ids.txt |while read line
do
elm -s "TEST" $line < $filesend
done
If the expression $3 >=80 is evaluating to TRUE when the 3rd field contains the value 9, awk must be performing a string comparison instead of a numeric comparison. Try changing:
if ($3 >=80 )
to:
if (($3 + 0) >=80 )
Of course, we haven't seen any sample input in this thread. It might help if we could see an input sample that is leading to these unexpected results.
facing issue while i am passing a file to this code and when its converting and merging the 1st column , when its come to string starting with "S" (capital S) on 1st column.
NR == FNR {
if ( $0 !~ /^#/ && $0 !~ /^S/ )
C[$1]++
next
When you have a new problem, please start a new thread.
When you give us four lines out of an awk script with no indication of what you're trying to do and no indication of what you think these lines are doing wrong, there isn't much we can do to help.
Please start a new thread. In that thread, show us your complete awk script, sample input to the script, corresponding sample output you want from the script, and an explanation of what transformations are supposed to be applied.