What does this mean?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What does this mean?
# 1  
Old 11-29-2007
What does this mean?

Hi,

I have been maintaining a script that takes a variable and uses cut to get the value after the equals(=) sign. It then has a -4 paramater. I took a look at the man for cut but could not see what this is used for. Could someone help,

ENVVARVAL=`grep $ENVVARNAME $FILENAMEUSED|cut -d "=" -f2-4`

Thanks
# 2  
Old 11-29-2007
-d="=" sets "=" to the field delimiter character
-f2-4 means fields 2 to 4. The -4 is not a separate parameter
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question