#!/bin/bashs='NULL NULL NULL'sed -E ':a; s/(\t|^)NULL(\t|$)/\1\\N\2/g; ta' <<< "$s"sed -E ':a; s/(\t|^)NULL(\t|$)/\1\\N\2/g; ta' <<< "NULL"
Standard input is empty
\N \N \N \N
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!