Hi there,
How can i shorten this:
I am looking for a shorter alternative of sed. What I was trying to do is to change the string output format from
to:
How can i shorten this:
Code:
grep -ri "Password must meet complexity requirements" "$line" | sed 's/\t/<\/td><td>/' | sed 's/^.*:/<tr><td>/'| sed 's/$/<\/td><\/tr>/'
Code:
LPO/ULT0151_Password Policy.txt-Password must meet complexity requirements Enabled
Code:
<tr><td>Password must meet complexity requirements</td><td>Enabled</td></tr>
Moderator's Comments: | ||
|