#!/bin/sh # # A simple script to print your stuff on systems with the efingerd # finger daemon. # # Usage: Put in your $HOME, create a dir named .finger and aidd your # .plan, .project and wathever else to it. Keep in mind that # files without a preseding period (.) will be ignored. This is # by incompetence rather than design. # NOTE: due to gophernicus I had to change the name from # .efingerd to efingerd. You should change it back. # # Author: sndr@tilde.team # License: public domain # FILES=/home/$3/.finger/.* for file in $FILES do if [[ $(basename $file) == "." || $(basename $file) == ".." ]]; then : else # This whole colon and else business is bonkers, # but I could not for the life of me get it to work if [ -s $file ]; then echo $(basename $file) sed 's/^/ /' $file echo "" else echo $(basename $file) echo " (empty file)" echo "" fi fi done