Starting to play with bash on Linux, I am trying to perform a clearcase operation on all files resulting from an other clearcase operation. In other words I want to check in all the checked out files.
The command to list checked out files is: cleartool lsco -short -rec
.
The command to check in a file is: cleartool ci -nc filename
.
I am able to do that using the following for loop:
for f in 'cleartool lsco -short -rec.'; do cleartool ci -nc $f; done
I am wondering if there is an other way to do that using pipelines? Something like:
cleartool lsco -short -rec . | cleartool ci -nc
The problem here is that cleartool doesn't read stdin but expects a parameter, correct?