The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-29-2007
Registered User
 

Join Date: May 2007
Posts: 3
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
Reply With Quote
Forum Sponsor
  #2  
Old 11-29-2007
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,047
-d="=" sets "=" to the field delimiter character
-f2-4 means fields 2 to 4. The -4 is not a separate parameter
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0