0%

The third week of ARTS: Repo

Algorithm

Title:Palindrome Number
Solution:C solution

Review

I always don’t kwnow enough about repo, so I read some articles about repo this week. These articles describe the repo Manifest format, usage of repo, repo && git , etc in detail. It helps me a lot. But I have not absorbed them yet, I need more time.

The links are as follows:
repo

Tips

  • Delete Files Using Extended Pattern Matching Operators.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    # enable extglob
    shopt -s extglob

    rm -v !("filename")
    rm -v !("filename1"|"filename2")
    # such as,
    rm -i !(*.zip)
    rm -v !(*.zip|*.odt)

    # disable extglob
    shopt -u extglob
  • Delete Files Using Linux find Command

    1
    2
    3
    4
    5
    6
    7
    find /directory/ -type f -not -name 'PATTERN' -delete
    find /directory/ -type f -not -name 'PATTERN' -print0 | xargs -0 -I {} rm {}
    find /directory/ -type f -not -name 'PATTERN' -print0 | xargs -0 -I {} rm [options] {}
    # such as,
    find . -type f -not -name '*.gz'-delete
    find . -type f -not -name '*gz' -print0 | xargs -0 -I {} rm -v {}
    find . -type f -not \(-name '*gz' -or -name '*odt' -or -name '*.jpg' \) -delete

Share

How does the repo of android source code work ?