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:
thank you, and sorry, if i had formulated wrong, but the SOMETEXT#X
is a random STRING, like:
$ cat testfile.txt
alsjflsajfkljasdf
brfont size=3asfklasjlkyxcvo/fontbr
brfont size=3kldfjlkasjdfasdf/fontbr
kasfjxcvklajdflas
yxcvkjasafjads
brfont size=3asdfjkldjlasj/fontbr
/font/div/body/html
Arthur Bela wrote:
i just can't figure it out, how to sed when having several lines
[nor in awk, perl..]
I have not really understood your question, but maybe this will help you:
http://www.grymoire.com/Unix/Sed.html#uh-51
I would go someway along the lines of removing the newline at the end,
3 matches
Mail list logo