def cut(input_file, *args):
    options = process_options(*args)
    delimiter = d_option(options['-d'])
    lines = input_file.readlines()
    columns = [item.split(delimiter) for item in lines]
    scope = f_option(options['-f'], len(columns[0]))
    out_scope = []
    for x in scope:
        out_scope.append([column[x] for column in columns])
    pr = []
    for line in range(len(out_scope[0])):
        for rec in out_scope:
            pr.append(rec[line].strip())
        print(delimiter.join(pr), end='')
        pr.clear()
        print()
def cut(input_file, *args):
    options = process_options(*args)
    delimiter = d_option(options['-d'])
    lines = input_file.readlines()
    columns = [item.split(delimiter) for item in lines]
    scope = f_option(options['-f'], len(columns[0]))
    out_scope = []
    for x in scope:
        out_scope.append([column[x] for column in columns])
    pr = []
    for line in range(len(out_scope[0])):
        for rec in out_scope:
            pr.append(rec[line].strip())
        print(delimiter.join(pr), end=)
        pr.clear()
        print()