I am not into that Emacs thing, but since you mentioned sed - I know a
few ways that work guaranteed in sed:
1. by letter for letter translation:
   echo "I've looked in both the emacs" | sed 'y/qwertyuiopasdfghjklzxc
vbnm/QWERTYUIOPASDFGHJKLZXCVBNM/'
   returns: I'VE LOOKED IN BOTH THE EMACS
2. using \U
   echo "I've looked in both the emacs" | sed
's/\([[:alnum:]]\)/\U\1/g'
3. In awk:
   echo "I've looked in both the emacs" | awk '{print toupper($0)}'
If these commands do not work for you then you should check LC_ALL in
your locale:
command: locale
Perhaps setting LC_ALL to C might help you resolve your trouble with
sed, sort and other regexp/char based commands.
See this for its effect on sort:
LC_ALL=en_US sort <<< $'a\nb\nA\nB'
LC_ALL=C sort <<< $'a\nb\nA\nB'
Perhaps that is what is stopping your Emacs from behaving.
Best luck, Tomas


On Mon, 2016-12-19 at 16:41 -0800, Rich Shepard wrote:
> On Mon, 19 Dec 2016, Rich Shepard wrote:
> 
> >   I've looked in both the emacs docs and the wiki and both show me
> > that M-c
> > will convert individual uppercase words to initial capitalized
> > words, but
> > I've not found the way to do this for all words rather than one at
> > a time.
> 
>    I've also tried sed and perl (from web searches) and they're not
> working
> either.
> 
> Rich
> _______________________________________________
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to