IOS Add all files to svn command at once

Source: Internet
Author: User

I use SVN with terminal commands, but using terminal has two troubles

The first one is not to add all the files at once, and finally I find such a command by searching the Internet

SVN St | awk ' {if ($1= "?") {print $}} ' | Xargs SVN add


at first I don't know what it means, it feels good.

but this command cannot be added [email protected] Such a picture file, you need to add the "@" symbol behind the picture

Today, due to the uploading of a lot of pictures, one by one plus inconvenient, so I studied the awk command.

Finally, just a little change to the above command.

SVN St | awk ' {if ($1= "?") {if (Match ($, "@")) {print $ "@"}else{print +}}} ' | Xargs SVN add

where match ($, "@") is to retrieve each row if there is an "@" character, and the @2x.png file is not identified .


Record these, write to yourself, welcome reprint--LC

IOS Add all files to svn command at once

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.