Using sed to get rid of characters < > , With sed: sed 's|[<>,]||g' With tr: tr -d '<>,' Try this one: sed 's/[<>,]//g'