def sudo_yield_file_lines(file_path='<STR_LIT>'):
<EOL>sudo_cat_cmd = '<STR_LIT>'.format(file_path)<EOL>process = subprocess.Popen(sudo_cat_cmd, stdout=subprocess.PIPE, shell=True)<EOL>for line in iter(process.stdout.readline, '<STR_LIT>'):<EOL><INDENT>yield line<EOL><DEDENT>
r"""Cat a file iterating/yielding one line at a time,

    shell will execute: `sudo cat $file_path` so if your shell doesn't have sudo or cat, no joy
    Input:
                    file_path(str): glob stars are fine

    >> for line in sudo_yield_file_lines('/etc/NetworkManager/system-connections/*')