Hii all,

I used double pipes to solve that, maybe its not the best way but here
what i used:

echo "Some eXampel tExt." | sed 's/ /\n/g' | sed  -r  -n 's/[a-z]//g;
2~1p'


On Jun 29, 8:32 pm, Ammar Ibrahim <[email protected]> wrote:
> On Tue, Jun 29, 2010 at 6:34 PM, Ahmad Saleh <[email protected]> wrote:
> > Check this out:
>
> > [^\s]+([A-Z])[^\s]*
>
> This is a nice idea, but over simplified for real-world cases. One problem
> e.g is is that if the word started right after a "." or any punctuation it
> would be matched.

-- 
### Jordan Linux Users Group ###
http://Jolug.org/
http://groups.google.com/group/Jolug

### Ubuntu Jordan LoCo Team ###
https://wiki.ubuntu.com/JordanTeam
http://lists.ubuntu.com/ubuntu-jo

### Ojuba Linux ### 
http://ojuba.org/

### Jordan PHP ###
http://groups.google.com/group/JoPHP

رد على