Tuesday, 27 August 2013

How can I get the output of Cloudfoudry CLI vmc/cf by "grep"

How can I get the output of Cloudfoudry CLI vmc/cf by "grep"

I have used the following command
vmc info |grep target
I can get the target info exactly. But when I type:
vmc apps |grep running
There is no output. If I try to redirect the stdout to file like:
vmc apps &> tmplog
I was confused to see that only the first column of the output (appname)
was written into the file. Any suggestions?

No comments:

Post a Comment