小懶蟲的blog~

Tuesday, September 01, 2015

tar的多重exclude寫法

正常是這樣:
tar --exclude=EXCLUDE_1 --exclude=EXCLUDE_2 ....
但是多起來的時候會很囉嗦.
另一個比較簡便的寫法是, 用大括號:
tar --exclude={EXCLUDE_1,EXCLUDE_2.....}
Posted by Mike Chen at 5:56 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2021 (1)
    • ►  June (1)
  • ►  2019 (2)
    • ►  October (2)
  • ►  2017 (1)
    • ►  February (1)
  • ►  2016 (1)
    • ►  October (1)
  • ▼  2015 (5)
    • ▼  September (1)
      • tar的多重exclude寫法
    • ►  May (3)
    • ►  April (1)
  • ►  2014 (17)
    • ►  October (2)
    • ►  September (7)
    • ►  July (6)
    • ►  April (1)
    • ►  March (1)
  • ►  2013 (24)
    • ►  December (1)
    • ►  October (1)
    • ►  September (5)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (2)
    • ►  February (3)
    • ►  January (8)
  • ►  2005 (1)
    • ►  June (1)

About Me

Mike Chen
View my complete profile
Simple theme. Powered by Blogger.