Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return a value

Status
Not open for further replies.

alhassani54

Programmer
Aug 1, 2002
27
GB
I have a variable and I would like to get some of that variable.
For example

${icsdir}=/ics2/db/icssysparms and I would like a new variable abc=ics2

Any help will be appreciated.


Thanks

Kais
 
I have ${icsdir}="/ics2/db/icssysparms." and I only want ics2 from it.
 
icsdir=`echo $icsdir | cut -d/ -f2`
you do not need {} and "
ist not wrong, but you never will understand
when tey are needed if you allways use them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top