2014-04-03 503 views

回答

3

man ar顯示此修改器:

N Uses the count parameter. This is used if there are multiple entries in the archive with the same name. 
     Extract or delete instance count of the given name from the archive. 

因此,例如,你可以使用ar xN 5 libfoo.a utils.o從檔案中提取5 utils.o對象...

+1

只有GNU。 BSD版本(例如OSX上)沒有這個版本。 – OrangeDog

相關問題