Re: Removing first piece of a line, if there's an all cap word
The carbonbased lifeform Janis Papanagnou inspired comp.unix.shell with:
> Theo v. Werkhoven wrote:
>> The carbonbased lifeform Janis Papanagnou inspired comp.unix.shell with:
>>
>>>Theo v. Werkhoven wrote:
>>
>> [..]
>>
>>>>173&&&HILLEGOM (wit bord)&
>>>>should become:
>>>>&&&HILLEGOM (wit bord)&
>>>
>>>How is that "all cap words" defined? The fourth field (assumed & as separator)
>>>does also contain lower case letters (within the brackets).
>>
>>
>> I know, I wasn't really clear. For a non-Dutch person it's not immediatly
>> obvious that the words following ^\d+[&&&] are names of places. Those
>> are the only lines I'm interested in.
>>
>>
>>>If neither is what you want, please clarify.
>>
>>
>> See John's answer.
>
> Does his answer explains the requirement YOU want?
It does.
Theo
--
theo at van-werkhoven.nl ICQ:277217131 SuSE Linux
linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"
|