Mac terminal command input too long it does not fit? Mac terminal command input too long it does not fit? kubernetes kubernetes

Mac terminal command input too long it does not fit?


Can you try with script:

Write the command in a script file. like: test.sh.

And may be you need to add x mod also, to make it executable.just run the command to change the mod.

chmod +x test.sh

steps will be like this :

  1. nano test.sh.

  2. add the command inside the script.

  3. chmod +x test.sh.

  4. run ./test.sh

test.sh

#!/usr/bin/env bashkubectl get pvc --field-selector metadata.name!=dataX********************************,******************************************************************,************************************************************************************************,************************************************************************************************,************************************************,*************************************************,***********************************************,*************************************************,***********************************************,*************************************************,***********************************************,************************************************,************************************************,*************************************************,***********************************************,*************************************************,dataY***********************************************,*************************************************,***********************************************,***************************************************,*********************************************,****************************************************,*******************************************,******************************************************,*****************************************,*******************************************************,****************************************,********************************************************,***************************************,*********************************************************,**************************************,**********************************************************,*************************************,***********************************************************,************************************,************************************************************,***********************************,************************************************************,***********************************,*************************************************************,***********************************,************************************************************,************************************,************************************************************,************************************,***********************************************************,*************************************,***********************************************************,*************************************,*************************************************************,***********************************,************************************************************,***********************************,*************************************************************,************************************,***********************************************************,*************************************,**********************************************************,**************************************,***********************************************************,************************************,************************************************************,***********************************,***********************************************************,************************************,*********************************************************,**************************************,********************************************************,***************************************,*******************************************************,***************************************,*******************************************************,*************************************,***********************************dataZ

then run ./test.sh in CLI.