Hi,
I'm trying to acheive the following, I have a dat file in which i have several addresses, If the address starts with a single digit then i have to delete the line,
if it starts with 2 or more digits then i have to keep the line
Here is a sample of my file:
377 CARRER DE LA DIPUTACI� BARCELONA CATALUNYA 08013 ESP
77 GREEN STREET HIGH WYCOMBE BUCKINGHAMSHIRE HP11 2 GBR
2 KREUZWEG ERSIGEN BERN 3423 CHE
3 MUNCHPLATZ 10. BEZIRK-FAVORITEN WIEN 1100 AUT
Here is what i want in my output file:
377 CARRER DE LA DIPUTACI� BARCELONA CATALUNYA 08013 ESP
77 GREEN STREET HIGH WYCOMBE BUCKINGHAMSHIRE HP11 2 GBR
I have tried the following regex:
sed -e /^[0-9]/d
-- this is deleting all lines.