import os

fin = open('status_info.txt')
record = False
list = []
current = ""
for line in fin:
    if "crab_" in line:
        current = line.strip()

    if "failed" in line:
        list.append(current)

for entry in list:
    print("crab resubmit -d "+entry.replace(":",""))

ee4b093eb932aa90fbe19018cdac46a36fe5d3fa
<mask token>

<mask token>
for line in fin:
    if 'crab_' in line:
        current = line.strip()
    if 'failed' in line:
        list.append(current)
for entry in list:
    print('crab resubmit -d ' + entry.replace(':', ''))

<mask token>
fin = open('status_info.txt')
record = False
list = []
current = ''
for line in fin:
    if 'crab_' in line:
        current = line.strip()
    if 'failed' in line:
        list.append(current)
for entry in list:
    print('crab resubmit -d ' + entry.replace(':', ''))

import os
fin = open('status_info.txt')
record = False
list = []
current = ''
for line in fin:
    if 'crab_' in line:
        current = line.strip()
    if 'failed' in line:
        list.append(current)
for entry in list:
    print('crab resubmit -d ' + entry.replace(':', ''))

import os

fin = open('status_info.txt')
record = False
list = []
current = ""
for line in fin:
    if "crab_" in line:
        current = line.strip()

    if "failed" in line:
        list.append(current)

for entry in list:
    print("crab resubmit -d "+entry.replace(":",""))
