Clearcase check in/uncheck out all the checked out files script
I am so used to source safe recursive check in and found troublesome in clearcase having to do it manually one by one.
This is the Unix script that I have come out with
//for undo check out all the checked out files
cleartool lsco -cview -avobs | cleartool unco -rm `awk '{ print $(5) }' | sed -e 's/^\"*//' -e 's/ *\"$//'`
//for check in all the checked out files
cleartool lsco -cview -avobs | cleartool ci -nc `awk '{ print $(5) }' | sed -e 's/^\"*//' -e 's/ *\"$//'`
//Using xargs
cleartool lsco -cview -avobs -short | xargs cleartool ci
This is the Unix script that I have come out with
//for undo check out all the checked out files
cleartool lsco -cview -avobs | cleartool unco -rm `awk '{ print $(5) }' | sed -e 's/^\"*//' -e 's/ *\"$//'`
//for check in all the checked out files
cleartool lsco -cview -avobs | cleartool ci -nc `awk '{ print $(5) }' | sed -e 's/^\"*//' -e 's/ *\"$//'`
//Using xargs
cleartool lsco -cview -avobs -short | xargs cleartool ci
Comments
cleartool lsco -r -cview -short | cleartool ci -nc `awk '{print $1}'`