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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -