Support of stdin and sed option