开发者

log file creation problem in unix

开发者 https://www.devze.com 2022-12-12 15:30 出处:网络
i have command ccv this will output as below Your Project : gdgdd750V6开发者_Go百科4OG , Building Block : cgd9gdd .

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'})
0

精彩评论

暂无评论...
验证码 换一张
取 消