![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
-d="=" sets "=" to the field delimiter character
-f2-4 means fields 2 to 4. The -4 is not a separate parameter |
|||
| Google The UNIX and Linux Forums |