2014/04/15

Look up table with column name (SQL)

select a.name
from sysobjects a, syscolumns b
where a.id = b.id
and b.name = 'CFRMN_IND'

Look up table with partial table name (SQL)

select top 50 * from GTDMAST1..sysobjects
where type = 'U'
and name like "%SCA%"

How to get disk space in UNIX? (UNIX)

Usage:
df -k | grep local

Enjoy!

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!