[lug] Regex from shell

Chip Atkinson chip at pupman.com
Thu Nov 18 22:42:17 MST 2004


One thing you could try is 

for i in 0 1 2 3 4 5 6 7 8 9; do
  kill 111${i}
done

There are probably other ways that are more efficient though.  

Chip

On Thu, 18 Nov 2004, Budyanto Himawan wrote:

> Hi,
> 
> Is there a way to specify a shell command mixed with
> regular expression?
> 
> for example I want to kill all processes with pids 
> 1110 to
> 1119
> 
> I want to do something like "kill 111[0-9]".
> I tired a few different combo of the above and none
> seems to work. I know there must be something like
> that cause I used to know it but I just can't seem to
> recall.
> 
> Thanks
> Budyanto
> 
> =====
> ===========================
> Budyanto Himawan
> budyanto_himawan at yahoo.com
> ===========================
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> The all-new My Yahoo! - Get yours free! 
> http://my.yahoo.com 
>  
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
> 




More information about the LUG mailing list