Wal*_*ter 0 string bash replace line-breaks
[UPDATED QUESTION]
I've got a variable $CHANGED which stores the output of a subversion command like this: CHANGED="$(svnlook changed -r $REV $REPOS)".
Executing svnlook changed -r $REV $REPOS will output the following to the command line:
A /path/to/file
A /path/to/file2
A /path/to/file3
Run Code Online (Sandbox Code Playgroud)
However, I need to store the output formatted as shown below in a variable $FILES:
A /path/to/file<br />A /path/to/file2<br />A /path/to/file3<br />
Run Code Online (Sandbox Code Playgroud)
I need this for using $FILES in a command which generates an email massage like this:
sendemail [some-options] $FILES
Run Code Online (Sandbox Code Playgroud)
应该替换为$FILES,A /path/to/file<br />A /path/to/file2<br />A /path/to/file3<br />以便它可以解释html break标签。