|
From: | Gary Csaniz |
Subject: | sed |
Date: | Wed, 31 Oct 2001 12:38:33 -0800 (PST) |
The & special character is not supported?
Here is an example:
# delete duplicate, nonconsecutive lines from a file
sed -n 'G; s/\n/&&/; /^\([ -~]*\n\).*\n\1/d; s/\n//; h; P'
Here is a description of what it's supposed to do:
above reference found at: http://www.opengroup.org/onlinepubs/7908799/xcu/sed.html
[Prev in Thread] | Current Thread | [Next in Thread] |