How to qdel range of jobs?
Asked Answered
E

1

11

I want to qdel a range of jobs, with consecutive IDs. For example:

qdel 18280 18281 18282 18283 18284 18285

Imagine I had a longer list of consecutive IDs like this. I obviously don't want to have to type them all by hand. Is there a simpler way?

Erickaericksen answered 1/12, 2015 at 21:9 Comment(0)
E
20

Use the expansion {18280..18285} as the argument of qdel:

qdel {18280..18285}
Erickaericksen answered 1/12, 2015 at 21:10 Comment(1)
Nice! I was always doing for i in `seq 18280 18285`; do qdel $i; done :SBarathea

© 2022 - 2024 — McMap. All rights reserved.