23-06-2008, 16:15 | #11 |
The list is long, but distinguished
Join Date: Dec 2006
Location: Århus, Denmark
Posts: 1,643
|
*click* bought.
__________________
|
23-06-2008, 16:23 | #12 |
Bananaman
Join Date: Jul 2006
Location: Liverpool/Edinburgh
Posts: 4,817
|
Jesus, that actually looks foreign to me...
|
23-06-2008, 16:48 | #13 |
The list is long, but distinguished
Join Date: Dec 2006
Location: Århus, Denmark
Posts: 1,643
|
Book shmook, got there in the end.
Still, it's a handy thing to learn.
__________________
|
07-10-2008, 10:09 | #14 | |
The list is long, but distinguished
Join Date: Dec 2006
Location: Århus, Denmark
Posts: 1,643
|
Quote:
Code:
abcdefgh<<ijklmno>pqrst>>uvwxyz abcdefgh<<ijklmno<pqrst>>uvwxyz
__________________
|
|
07-10-2008, 11:19 | #15 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
You may have reached the limits of what sed can do for you there. It'll also break with this one:
Code:
abcdefgh<<ijklmno<>pqrst>>uvwxyz |
07-10-2008, 11:21 | #16 |
The list is long, but distinguished
Join Date: Dec 2006
Location: Århus, Denmark
Posts: 1,643
|
Any suggestions, Mr Mark? I think I need to buy you a pub...
__________________
|
07-10-2008, 11:31 | #17 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
Windows or Linux? There's a way to cheat it that I hadn't thought of before, but I'll have to put it into a script as it uses unprintable characters.
|
07-10-2008, 11:33 | #18 |
The list is long, but distinguished
Join Date: Dec 2006
Location: Århus, Denmark
Posts: 1,643
|
Linux. Any suggestions would be more than welcome.
__________________
|
07-10-2008, 11:45 | #19 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
OK - one more.
If I gave it: Code:
abcdefg<<<<hijkl>>mno>>pqrstuvwxyz I've solved all the other cases, but this one might resist. |
07-10-2008, 11:55 | #20 |
The list is long, but distinguished
Join Date: Dec 2006
Location: Århus, Denmark
Posts: 1,643
|
It'd never exist. The '<<' and '>>' will always match, there may be more than 1 per line, they would never overlap, and there may be single '<' and '>' in each.
__________________
|