#!/bin/bash
echo "one
two" | sed 'N;s/[[:alnum:][:punct:][:blank:]]/_/g'