29631eff7ddc2892e9fd80b98e9cce1a217f1f00
compute/data-munging.md
| ... | ... | @@ -9,6 +9,9 @@ |
| 9 | 9 | ### Replace newlines with arbitrary text |
| 10 | 10 | `awk '{ print }' RS='\n' ORS='arbitrary_text'` |
| 11 | 11 | |
| 12 | +### Replace newlines with commas |
|
| 13 | +`paste -s -d ,` |
|
| 14 | + |
|
| 12 | 15 | ### Work with human-readable e.g. disk ^2 sizes |
| 13 | 16 | `numfmt --from=iec` and `numfmt --to=iec` |
| 14 | 17 |