I have a line of code in bash which I need to have run in python.
printf "operator: 'finger ${USER}|grep Name:| cut -f3 -d:(${USER})\n" > temp_header
I'm having a little trouble interpreting it, as I'm new to shell scripts and bash in particular, but from what I've gathered it wants to pull the user's username and name from finger and write them to a new header.
Am I interpreting this correctly, and if so, would I want to use windows cmd prompt to get username/name from the server?