Clearcase tips
Ewan's clearcase tip of the day:
Need to checkout all your hijacked files? Utterly depressed by the clearcase GUI?
Behold:
cleartool co -nc `cleartool ls -recurse | grep "hijacked" | sed s/\@\@.*// | xargs`
Note: only works on proper operating systems, or win32 with cygwin installed. Maybe. I only started poking at sed today, so I'm sure there is a way to merge the grep step into one sed command, but right now I can't be arsed.
Also, to import a directory try into a clearcase repository(using a Linux client as God intended, or this would probably work using cygwin.. maybe):
ct mkelem -nc `find ./ -name "*" | xargs`
Need to checkout all your hijacked files? Utterly depressed by the clearcase GUI?
Behold:
cleartool co -nc `cleartool ls -recurse | grep "hijacked" | sed s/\@\@.*// | xargs`
Note: only works on proper operating systems, or win32 with cygwin installed. Maybe. I only started poking at sed today, so I'm sure there is a way to merge the grep step into one sed command, but right now I can't be arsed.
Also, to import a directory try into a clearcase repository(using a Linux client as God intended, or this would probably work using cygwin.. maybe):
ct mkelem -nc `find ./ -name "*" | xargs`


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home