i have command
ccv
this will output as below
Your Project : gdgdd750V6开发者_Go百科4OG , Building Block : cgd9gdd .
if i do
ccv | awk '{ print $9}'
cgd9gdd
now i am tring to create a log file by running a build process
& tee log_`date +%Y%m%d%H%M%S`_`ccv | awk '{ print $9}'`
but this is not creating the log corrrectly. instaed have same logs with thier name as each and every field of the output of ccv as above.that is "Your Project : gdgdd750V64OG , Building Block : cgd9gdd ."for each and every word including . , there is a file and all files are same copies. is there anything wrong with the log file creation?
& tee log_$(date +%Y%m%d%H%M%S)_$(ccv | awk '{ print $9'})
精彩评论