It's just a text file, so I could run sed on it, but how do you test for just those characters?

Ash,
   Using sed should do it for you -- something like this:

       sed "s/[^a-zA-Z0-9,()':. \t]//g" file.txt > newfile.txt

That's saying to replace anything not in the list with nothing. I added space and tab (\t) to the end, as well.

--
Ben Reece
Director of Engineering, Doba <http://www.doba.com/>
801.765.6123
[email protected] <mailto:[email protected]>


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to