Monday, September 20, 2010

To replace newlines and compress multiple newlines

Sed cannot be used as it does not accept \n

Use trace instead.

The following command compresses multiple newlines :

cat n2 | tr -cd "[a-zA-Z\012]" | tr "\n" "|" | tr -s "|" | tr "\n" "|" > n3

No comments:

OK GOOGLE on Samsung Galaxy S7 doesn’t work

To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...