85ae438
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash # Prints the effective username of the current user PREFIX='' get_username() { USERNAME=$(whoami) echo "$PREFIX $USERNAME" } get_username