regex help needed

John Galbrit jgalbrit at
Thu Oct 14 19:36:33 PDT 2004

 --- Bennett Todd <bet at> wrote: 
> grep '[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*' filename

Thanks! Though for anyone else interested, grep with the -o switch is
needed if you just want to extract the IP's only.

Thanks again!

___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!

More information about the lfs-chat mailing list