fork download
  1. {
  2. gpus =0
  3. match($0, /gres\/gpu=([[:digit:]]+)/,a)
  4.  
  5. gpus+= a[1]
  6. print gpus
  7. }
Success #stdin #stdout 0.01s 5304KB
stdin
billing=72,cpu=72,gres/gpu=10,gres/gpu:a100=2,gres/gpu:l40s=8,mem=245000M,node=3
stdout
10