27.01.2015 Views

CLI User's Guide - AccuRev

CLI User's Guide - AccuRev

CLI User's Guide - AccuRev

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The accurev program recognizes the following filename patterns:<br />

*<br />

<br />

[aekz]<br />

[e–k]<br />

Matches any 0 or more characters.<br />

Matches any 1 character.<br />

Matches a, e, k, or z.<br />

Matches e, f, g, h, i, j, or k. Note: do not mix uppercase and lowercase.<br />

{one,two,seven}<br />

/ or \<br />

Matches any of the three strings: one, two, or seven.<br />

Matches any directory-separator character, even if it’s the “wrong one” for the client machine.<br />

For example, src/do_*.java matches src\do_something.java on a Windows client.<br />

Examples:<br />

• The following command displays the status of the files rln_4.1.1.htm, rln_4.1.2.htm, and<br />

rln_4.1.3.htm:<br />

accurev stat rln_4.1..htm<br />

• The following command displays the status of the three files listed above, along with others<br />

such as rln_4.htm, rln_4.5.txt, and rln_4.1.3k-ubuntu.htm:<br />

accurev stat rln_4*.{txt,htm}<br />

But it would not display the status of file rln_4-windows.chm.<br />

• The following command creates new versions of five files, color_f, color_g, ..., color_j.<br />

accurev keep color_[f-j]<br />

Combining File-Status Filters with Filename Patterns<br />

If you use a file-status filter in the same command as a filename pattern, the pattern is applied<br />

before the filter. For example:<br />

-k *.doc<br />

... specifies this two-step selection process:<br />

1. Select all elements in the current directory that have the suffix .doc.<br />

2. Select the subset of those elements that have (kept) status.<br />

<strong>AccuRev</strong>® <strong>CLI</strong> User’s <strong>Guide</strong> 17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!