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!

bourne shell and user variable initialization problem

Status
Not open for further replies.

ddtxjobsearch03

Programmer
Oct 31, 2003
1
US
I try this in script and it did not work...

first did a read of file to initial $Line...
followed by the following user var init:

abc=$Line|cut -d~ -f2
echo $abc

The echo did not work/i.e. produced error.

however the following does produce expected result:

echo $Line|cut =d~ -f2

I think I am missing quotes around the assignment but not sure of exact syntax. Thanks in advance.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top