login - Cygwin to use my windows username in path? -
i'm writing script cygwin needs cp file desktop.
cp /cygdrive/c/users/<username>/desktop/file /tmp/file
how can make cygwin or username of person running it?
i found in different answer, profile of current user $userprofile.
putting them becomes:
cp $userprofile/desktop/file /tmp/file
Comments
Post a Comment