Script Format


I have this script which only keeps a-z characters and I want to keep numerical digits as well and certain characters. How would I specify this?

Thank you

sed '/^$/d' | sed 's/  */ /g' | tr A-Z a-z | sed  -e 's/\([a-z]\+\.\)\+\(RSS\OEM\|DEM\)[^ ]*//g' -e 's/[^a-z ]/ /g' -e 's/[         ]\+/ /g'
Who is Participating?
farzanjConnect With a Mentor Commented:
You can do


Instead of [a-z]
tel2Connect With a Mentor Commented:
I think the:
  [^a-z ]
part should be changed to:
  [^a-z0-9 ]
as farzanj (almost) said.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.