Adam, 

I guess you can use Bash's brace expansion (assuming you are using Bash):

  scancel 1238{6..7} 

expands to 

  scancel 12386 12387

See http://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html

HTH

damien

Le 19 juin 2012 à 22:00, [email protected] a écrit :

> Hello all,
> I imagine there is a way to do this, but I can’t figure it out. 
> Suppose a user submits 100 jobs, and realizes they want to cancel JOBID 
> 1000-1050, but not 1051+.  Is there a way to use regular expressions (or 
> something) to do so?
>  
> I tried:
>  scancel 1238[6-7]
> scancel: error: Invalid job ID 1238[6-7]
>  
> scancel "1238[6-7]"
> scancel: error: Invalid job ID 1238[6-7]
>  
> For the following jobs:
>  
> JOBID    USER           START_TIME                  NAME CPUS  TIME    STATE
>   12386  amarko  2012-06-19T14:42:42                 sleep    1  1:19  RUNNING
>   12387  amarko  2012-06-19T14:42:42                 sleep    1  1:19  RUNNING
>   12385  amarko  2012-06-19T14:42:41                 sleep    1  1:20  RUNNING
>   12384  amarko  2012-06-19T14:42:39                 sleep    1  1:22  RUNNING
>  
> Thanks,
>  
> Adam Marko
> ------------------------------
> Adam C. Marko
> Bioinformatics Analyst III
> Asuragen, Inc
> 512-681-5303
>  
> 


--
Damien FRANCOIS, Ph.D.
Université catholique de Louvain
Cel.: +32 494 424767

web - http://www.ucl.ac.be/mlg
     http://www.damienfrancois.be/

Reply via email to