Unix `cp` command with $ sign -
this question regarding unix cp
command.
what $(...)
operator doing below?
cp $(bundle show bootstrap-sass)/vendor/assets/stylesheets/bootstrap.scss \ app/assets/stylesheets/bootstrap-custom.scss
i came across notation page: https://github.com/twbs/bootstrap-sass#usage
i checked man page cp , did not see references operation. i'm new *nix. thanks.
in shell scripting, $(...)
executes commands in parenthesis , returns text printed stdout command. applies backtick notation well.
for example: echo $(date) - dated line
print thu jun 26 10:08:20 cdt 2014 - dated line
here's stack overflow question on topic.
unix cp dollar-sign
No comments:
Post a Comment