ONTAP Discussions

OR operator in the cluster CLI

Tirthaghy
2,064 Views

Hello everyone,

 

I am little confused as to how the OR operator work.

 

How will vol show svm03|test*    and vol show test|svm03* supposed to be different?

 

Thank you much,

 

-T

 

 

1 ACCEPTED SOLUTION

Emile-Bodin
2,013 Views

Hi Tirthaghy,

 

It is not clear what you are trying to accomplish but,

 

this command will show the volume with the exact name svm03 and the volume(s) which start with the name test

::> vol show svm03|test* 

 

this command is the other way around, it will show the volume with the exact name test and the volumes which start with the name svm03

::> vol show test|svm03*  

 

Regards

 

Emile

 

View solution in original post

1 REPLY 1

Emile-Bodin
2,014 Views

Hi Tirthaghy,

 

It is not clear what you are trying to accomplish but,

 

this command will show the volume with the exact name svm03 and the volume(s) which start with the name test

::> vol show svm03|test* 

 

this command is the other way around, it will show the volume with the exact name test and the volumes which start with the name svm03

::> vol show test|svm03*  

 

Regards

 

Emile

 

Public