^SOMETEXT" {if (($0
~/SOMETEXT/ ) && (sawpattern == 0)) {sawpattern=1}
else {sawpattern=0;print $0}}' testfile.txt
alsjflsajfkljasdf
asfklasjlkyxcvo
kldfjlkasjdfasdf
kasfjxcvklajdflas
yxcvkjasafjads
asdfjkldjlasj
uiyxzckjhasfsd
$
On 27 November 2010 12:39, Arthur Bela wrote:
>
hyphen's [ - ] are just for marking the start/end of a pattern, but
there are _not in_ the pattern!
"OUTPUT" is what i want after "seding" the PATTERN#X's
so i for e.g.: need the first, and second "magic"
sed "FIRSTMAGIC" PATTERN#1
sed "SECONDMAGIC" PATTERN#2
PATTERN#1:
-
Does anyone has a "generate-pi.c" source code?
Thanks.. :D :\
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines