← Back to team overview

sslug-teknik team mailing list archive

Re: Regular Expressions.. commandline stuff..

 

On Fri, Mar 23, 2001 at 03:20:34PM +0100, Joern Thyssen wrote

[snip]
> route -n | grep "U " | grep -v lo | cut -c 1-16,33-47 | perl -p -e
> 's/(([0-9]{1,3}\.){3}[0-9]{1,3})\W+(([0-9]{1,3}\.){3}[0-9]{1,3})\W+/\1\/\3/;'

Ups, \W skulle have været \s

Jørn

-- 
Joern Thyssen, Ph.D. student 
Dept. of Chemistry, University of Southern Denmark

e-mail: joern@xxxxxxxxxx (preferred)
        jth@xxxxxxxxxxx
www   : www.thyssen.nu



Follow ups

References