in reply to Reformat command output inline
perl -p0e 's/\n^$|^dn:.*\n//mg; s/cn: //g; s/\norclnetdescstring: /=/g +'
Main problems:
Newline removed after, not before | | | | v v 's/\n^$|\n^dn:*$//mg','s/cn: //g','s/\norclnetdescstring: /=/g' 's/\n^$|^dn:.*\n//mg; s/cn: //g; s/\norclnetdescstring: /=/g ^ ^ | | Missing | dot Optional: no need to switch between Perl and shell +, using semicolons instead of commas.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reformat command output inline
by RenMcCourtey (Acolyte) on Jun 29, 2016 at 13:48 UTC | |
by choroba (Cardinal) on Jun 29, 2016 at 13:56 UTC | |
by RenMcCourtey (Acolyte) on Jun 29, 2016 at 14:10 UTC |