grep a specific string from a file

From: Atif Nadeem (Atif.Nadeem@dubaiinternetcity.ae)
Date: Wed Mar 23 2005 - 02:43:02 EST


Hi,

Sorry for the inconvenience...Please discard my previous mail.

In my unix machine, I want to extract particular string 3912763 from a
file abc (please find below). Which option with grep command should I
use to get it? Or if there is any other command best commensurate to get
this, please advice.

# more abc

atif nadeem 3912763hjhhkhkhh3

abdurahman 4014 3912763 hgadsgha ghdsguy hasbnh bb44523 213nbmb bb23.
`13123b nbmnbhjk ds

hdgsl 3910000kjlkjl hkhk dfsadf k

sdjkfhasdjkh

3910000g

hljkhkj 3912763s hjhkhatifh

jkhjklsdhfjklh 3912763 asjklh

bncxzhjvgfdf

ahsgdfasdhj

3912763 hgjhdgfhj dgsfhgasdjlg hgsdjig4345 gjg 34 ghj3g 3912763 gfhasg
agsg234 3912763

#

# grep 3912763 abc

atif nadeem 3912763hjhhkhkhh3

abdurahman 4014 3912763 hgadsgha ghdsguy hasbnh bb44523 213nbmb bb23.
`13123b nbmnbhjk ds

hljkhkj 3912763s hjhkhatifh

jkhjklsdhfjklh 3912763 asjklh

3912763 hgjhdgfhj dgsfhgasdjlg hgsdjig4345 gjg 34 ghj3g 3912763 gfhasg
agsg234 3912763

#

All I want to get the output like:

#

3912763

3912763

3912763

3912763

3912763

3912763

3912763

Regards

Atif
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:25 EDT