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 :
nano test.sh
.add the command inside the script.
chmod +x test.sh
.run
./test.sh
test.sh
#!/usr/bin/env bashkubectl get pvc --field-selector metadata.name!=dataX********************************,******************************************************************,************************************************************************************************,************************************************************************************************,************************************************,*************************************************,***********************************************,*************************************************,***********************************************,*************************************************,***********************************************,************************************************,************************************************,*************************************************,***********************************************,*************************************************,dataY***********************************************,*************************************************,***********************************************,***************************************************,*********************************************,****************************************************,*******************************************,******************************************************,*****************************************,*******************************************************,****************************************,********************************************************,***************************************,*********************************************************,**************************************,**********************************************************,*************************************,***********************************************************,************************************,************************************************************,***********************************,************************************************************,***********************************,*************************************************************,***********************************,************************************************************,************************************,************************************************************,************************************,***********************************************************,*************************************,***********************************************************,*************************************,*************************************************************,***********************************,************************************************************,***********************************,*************************************************************,************************************,***********************************************************,*************************************,**********************************************************,**************************************,***********************************************************,************************************,************************************************************,***********************************,***********************************************************,************************************,*********************************************************,**************************************,********************************************************,***************************************,*******************************************************,***************************************,*******************************************************,*************************************,***********************************dataZ
then run ./test.sh
in CLI
.