2014/04/15

How to find a specific string in UNIX? (UNIX)

find . -type f -exec grep -l "STRING_YOU_ARE_LOOKING" {} \; >> /var/tmp/user_temp/tracersearch/tracer_base_profl_search.log &

Enjoy!

Clearcase how to draw a merge line? (CLEARCASE)

Usage:
cleartool mkhlink -unidir Merge FILE1 FILE2

Enjoy!

Clearcase how to tag/mark label? (CLEARCASE)

Usage:

cleartool mklabel -rep LABEL_NAME FILE_PATH

Enjoy!

Clearcase how to create label? (CLEARCASE)

Usage:

cleartool mklbtype -nc LABEL_NAME

Enjoy!

Clearcase how to lock/unlock label? (CLEARCASE)

Usage (lock):
cleartool lock lbtype:LABEL_NAME

(Unlock)
cleartool unlock lbtype:LABEL_NAME

Enjoy!

Clearcase how to change owner? (CLEARCASE)

Usage:
cleartool protect -chown v439333 -chgrp feaccusr lbtype:LABEL_NAME

v439333 => user id
feaccusr => group name

Enjoy!

Clearcase how to lock label but only specific person are allowed to use the label? (CLEARCASE)

Usage:
cleartool lock -nusers r339347,v439333 lbtype:LABEL_NAME

r339347,v439333 => userid

Enjoy!