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:

Removing audio noise from a video

The basic steps are to extract the audio, remove noise, and then re-insert the noise-free audio back into the video wrapper. Step I: Ext...