Petre Scheie wrote:
> 
> How about this:
> 
> cp filename `grep $1 /etc/passwd |cut -d: -f6`

you might want to add ^ and : to the grep to limit it to usernames only
  cp filename `grep ^$1: /etc/passwd | cut -d: -f6`

Eric