# 行頭の数字(行番号)を「=====」に置換する例。

sed -e "s/^[0-9]* /=====/g " -e "s/^[0-9]*$/=====/g" testdata3.txt

# 行末の改行を削除する例。

cat tput | tr -d '\n' | sed -e 's/tput /\ntput /g'