cat x.txt 62643383279533330288419716grep 333 x.txt 62643383279533330288419716grep 3333 x.txt 62643383279533330288419716grep -w 333 x.txt grep -w 3333 x.txt  How to grep for only 333? If I use plain grep 333 x.txt it will output the 3333 too!
How to math exact digits if the surroundings are digits?
grep
To get only the precise pattern you are looking for, use -o:$ grep -o 333 x.txt333