如何在Makefile上获取UID。我在提示符中使用id -u
,那就是在我的Makefile中返回我的UID问题
perm-user:
@echo $(id -u)
没有回报。有人有想法吗? 谢谢你的帮助
答案 0 :(得分:2)
转义Get-ADUser -filter {userAccountControl -eq "512"} -properties Name,userAccountControl -Server myserver.local | Export-CSV "E:\Folder\ADusers.csv" -NoTypeInformation -Encoding UTF8
以便shell解释它而不是make。
$
不需要@echo $$(id -u)
。 echo
与echo $(cmd)
相同。
cmd