Unxutils usage in Windows

Source: Internet
Author: User

Today, I met a tough demand. due to historical reasons, the company had a project containing many java files. After the modification, although it was saved on SVNProgramMember habits: Name the modified files as follows:

Example: for example, there is a helloween. after the Java file is modified on SVN and submitted to SVN, they keep a copy in the system. For example, the modified file is retained in the system today, name: helloween. java.20130807, and later programmers follow this example: [not limited to java files, JSP files, JS files, CSS files, etc ......], Now, when the customer asks to delete these useless files in the system, it is very painful at the beginning and cannot be found one by one. After talking with some friends in the group, some of my friends are engaged in Linux development and are familiar with shell, but there are many things in Linux, but not under DOS in windows. Later, at the suggestion of a friend, unxutils,: http://sourceforge.net/projects/unxutils? Source = navbar
You can search for unxutils directly on Google. After the download, the directory is as follows:

I am not very familiar with it. Under the guidance of a friend, there are many EXE files in the unxutils \ USR \ Local \ wbin path, it is an executable file of Unix commands in windows. For example:


Then in the configuration of environment variables, in the system variables configure path, you can use these commands under DOS [specific configuration environment variables refer to: http://hi.baidu.com/matrix207/item/30f7dcfd9511eac20dd1c8be]

For example, to delete the helloween. java.20130807 files in the Java project, you can enter the corresponding directory and run the following command:

Find-name * java. * | xargs Rm-RF

What is the specific meaning of the command? You can Google it yourself.

Similarly, the command for deleting JSP, JS, CSS, GIF, and other files is as follows:

Find-name * JSP. * | xargs Rm-RF

Find-name * js. * | xargs Rm-RF

Find-name * CSS. * | xargs Rm-RF

Find-name * GIF. * | xargs Rm-RF


【Note:] When deleting a file, if the project is large, the error "xargs: cannot fork" will be prompted. In this case, the corresponding folder will be deleted one by one.

Good luck!

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.