Results 1 to 4 of 4
Hello all
I am trying to find out line which contains filex , where x in an intezer
for example
vi test
file1 abc ghdy file3
dhyd file4 file5
hdhd ...
- 01-06-2011 #1Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
regular expression + grep
Hello all
I am trying to find out line which contains filex , where x in an intezer
for example
in order to find the lines containg filex i am using grep commandvi test
file1 abc ghdy file3
dhyd file4 file5
hdhd file
jfujf jfj
grep file[1234567890] text
but the command is not working? what is wrong with this command ??
- 01-06-2011 #2
try this
Code:egrep 'file[0-9]{1,1}' testYou must always face the curtain with a bow.
- 01-06-2011 #3Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
yes thank you
- 01-06-2011 #4Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
this is even working with
grep 'file[1-9]' *
i missed the quotes .


Reply With Quote