Search Results

Search: Posts Made By: ted_chou12
1,279
Posted By ted_chou12
remove specified line from text
hi, I wish to move a specified line from a text file:

ltoremove=5 #remove 5th line
i=1
while read line ; do
if [ $i == $ltoremove ] ; then
...
i=$(($i+1))
done < "txt.txt"

how should this...
17,825
Posted By ted_chou12
thanks
thanks
17,825
Posted By ted_chou12
Replace new line with <br /> & escape special characters
Hi, I wish to replace a new line with br (html) but it doesn't seem to work

message=$(echo ${FORM_message} | tr '\r' '<br \/>' )
what it gives me seems to be ... b...?


I am also having...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy