On Mon, Oct 20, 2008 at 5:28 PM, Tom Chapin <[EMAIL PROTECTED]> wrote:
> Robert Citek wrote:
>  > $ echo '12345' | tr '[^1234]' 'x'
>  > xxxx5
>
> Try:
>    echo '12345' |  tr -c '[1234\n]' 'x'
>    1234x

Works in Ubuntu:

$ echo '12345' |  tr -c '[1234\n]' 'x'
1234x

Does not work in Solaris:

$ echo '12345' |  tr -c '[1234\n]' 'x'
12345

Regards,
- Robert

--~--~---------~--~----~------------~-------~--~----~
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
More options: http://groups.google.com/group/cwelug
-~----------~----~----~----~------~----~------~--~---

Reply via email to