Re: sed misbehaving?

From: Dan <dan_at_danneh.org>
Date: Mon, 27 Aug 2007 12:11:52 +0100
echo 'ABC'|sed 's/a/z/p'

the p flag at the end makes it case sensitive. so in this instance, the 
above will output "ABC".
echo 'ABC'|sed 's/A/z/p'
will output zBC.

Dan

Danny Braniss wrote:
> Since noone is complaining, this must be an oversite on my part, but
> 	echo 'ABC'|sed 's/a/z/'
> results in
> 	zBC
> what did i miss?
>
> thanks,
> 	danny
>
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
>
>   
Received on Mon Aug 27 2007 - 09:11:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC