Skip to main content
deleted 12 characters in body; edited tags; edited title
Source Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

Linux Match a number range between two numbers?with grep

I need to find all processes that hashave in theretheir names numbersa number between 100 to 200 including the edge(meaning includeand 200 not 299) Iinclusive.

I tried

ps -ef | grep xclock -bw '[1-2][0-9][0-9]' 

but that includeincludes 299 how. How to suppress it and have only numbers up to untill 200?

Linux range between two numbers?

I need to find all processes that has in there names numbers between 100 to 200 including the edge(meaning include 200 not 299) I tried

ps -ef | grep xclock -bw '[1-2][0-9][0-9]' 

but that include 299 how to suppress it to untill 200?

Match a number range with grep

I need to find all processes that have in their names a number between 100 and 200 inclusive.

I tried

ps -ef | grep xclock -bw '[1-2][0-9][0-9]' 

but that includes 299. How to suppress it and have only numbers up to 200?

formatting and spelling typos
Source Link
X Tian
  • 10.7k
  • 3
  • 35
  • 51

I need to find all processes that has in there names numbers between 100 to 200 including the edge(meaning include 200 not 299) I tried ps -ef | grep xclock -bw '[1-2][0-9][0-9]'

ps -ef | grep xclock -bw '[1-2][0-9][0-9]' 

but that include 299 how to supresssuppress it to unrill 20ountill 200?

I need to find all processes that has in there names numbers between 100 to 200 including the edge(meaning include 200 not 299) I tried ps -ef | grep xclock -bw '[1-2][0-9][0-9]' but that include 299 how to supress it to unrill 20o?

I need to find all processes that has in there names numbers between 100 to 200 including the edge(meaning include 200 not 299) I tried

ps -ef | grep xclock -bw '[1-2][0-9][0-9]' 

but that include 299 how to suppress it to untill 200?

Source Link
Leon
  • 21
  • 2

Linux range between two numbers?

I need to find all processes that has in there names numbers between 100 to 200 including the edge(meaning include 200 not 299) I tried ps -ef | grep xclock -bw '[1-2][0-9][0-9]' but that include 299 how to supress it to unrill 20o?