Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2007 12:11:52 +0100
From:      Dan <dan@danneh.org>
To:        Danny Braniss <danny@cs.huji.ac.il>
Cc:        freebsd-current@freebsd.org
Subject:   Re: sed misbehaving?
Message-ID:  <46D2B178.8030907@danneh.org>
In-Reply-To: <E1IPcIH-000Cya-0v@cs1.cs.huji.ac.il>
References:  <E1IPcIH-000Cya-0v@cs1.cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>
>
>   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46D2B178.8030907>