Results 1 to 1 of 1
Hi, I wish to replace a new line with br (html) but it doesn't seem to work
Code:
message=$(echo ${FORM_message} | tr '\r' '<br \/>' )
what it gives me ...
- 02-06-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 5
replace new line with <br />
Hi, I wish to replace a new line with br (html) but it doesn't seem to work
what it gives me seems to be ... b...?Code:message=$(echo ${FORM_message} | tr '\r' '<br \/>' )
I am also having problem escaping hash sign in cut command:
my intention is to split the line with "#;#"Code:list=$(echo "$line" | cut -d'\#;\#' -f1) ;
thanksLast edited by ted_chou12; 02-06-2011 at 05:47 AM.


Reply With Quote