How to exclude files by name in the ClearCase search command?

Using the ClearCase search command, how do I find all the files in a directory that does not have a pom.xml name?

I would like to pass other selection options to the ClearCase search command, so I would rather not run another command.

I am using the Linux version of RedHat for ClearCase. I tried "cleartool find! -Name pom.xml -print" and it does not work.

PS: I do not use ClearCase of my choice, this is provided by my project. This is one of the reasons why I hate her. I read man pages several times and don’t see a clear way to do this, that works!

+5
source share
3 answers

, -exec cleartool find.

, , (, sh DOS script).

, " ", script exec find... , ;)

, script :

(Unix 'print.sh')

#!/bin/sh
if [ $1 != $2 ] ; then
  echo $1
fi

(windows 'print.bat')

@echo off
if not "%1"=="%2" echo "%1" 

script script % PATH% $PATH.

, , find ( , ..)

(Unix)

cleartool find . -nrec -type f -exec './print.sh $CLEARCASE_PN ./pom.xml'

()

cleartool find . -nrec -type f -exec "print.bat %CLEARCASE_PN% .\pom.xml"

: " , pom.xml".

. "-type f" find ( ).

+2

ClearCase (AFAIR), grep -

cleartool ls -short -nxname | grep -v pom.xml
+3

There is another solution that might work for you. Try

ccapply task

+3
source

All Articles