ONTAP Discussions

OR operator in the cluster CLI

Tirthaghy

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

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public