-2

I want to search for the occurrence of 100169200

I typed /100169200 but vi says Pattern not found

Edit

Since the question has been downvotes, I would like to make it clear that grep can find the number in the file, but vi does not.

Edit 2

For the sake of it, I download vim for windows, and it can find it. However vi in Solaris still does not work.

Rosdi
  • 229
  • 2
  • 3
  • 11
  • have you tried vimgrep? – MaQleod Aug 05 '11 at 05:00
  • I'm sorry Rosdi, but the number you are looking for is in another castle. – Janne Pikkarainen Aug 05 '11 at 05:08
  • Why the downvotes? Was the question not valid? As I said.. grep can find it, but vi doesn't. – Rosdi Aug 05 '11 at 06:19
  • 1
    What if you try to search for anything else with vi? Can you find it? Try searching for a word or number or definitely see with your own eyes while in `vi`. If _that_ does not help, then you have some very strange problem. Oh, and about the downvotes: usually questions with only couple of lines in them tend to get downvotes easily. The more descriptive question, the easier to answer. – Janne Pikkarainen Aug 05 '11 at 06:42
  • @Rosdi: The four votes to close as off-topic should give you a hint as to the downvotes. – womble Aug 05 '11 at 07:17
  • Explain why grep can find but vi cannot.. if you can. – Rosdi Aug 05 '11 at 07:19

1 Answers1

2

Then the number isn't in the file you searched.

womble
  • 95,029
  • 29
  • 173
  • 228