Using the ClearCase find command, how do I find all files in a directory that do not have the name pom.xml?
I'd like to pass other selection options to the ClearCase find command so I'd prefer not to execute another command.
I am using a RedHat linux version of ClearCase. I have tried "cleartool find ! -name pom.xml -print" and that does not work.
PS: I do not use ClearCase by choice, it's mandated on my project. This is one of the reasons I hate it. I've read the man pages several times and see no clear way to do this that works!
Exclude Files and Directories from a List. When you need to exclude a large number of different files and directories, you can use the rsync --exclude-from flag. To do so, create a text file with the name of the files and directories you want to exclude. Then, pass the name of the file to the --exlude-from option.
In Rational® ClearCase® Explorer, access the view you use for your development task. Navigate to the parent directory to which you want to add the files or directories. If the files or directories are not present, drag them to the parent directory. Select the files and directories you want to add to source control.
Branch, version, and label information for resources under ClearCase source control is available through the ClearTeam Navigator View. and ClearCase properties view. You can also use the ClearCase Version Tree view to find branch, version, and label information for ClearCase resources.
ClearCase wildcards doesn't have inversion (AFAIR) but you can use grep for this -
cleartool ls -short -nxname | grep -v pom.xml
There is another solution which might work for you. Try
ccapply task
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With