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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix c shell question, fgrep and printf question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need to know how to in unix c shell

to printf to a file a list of variables in the form of

variable1:variable2:variable3:::

etc.

i've tried:
printf "$variable1:$variable2:$variable3:::" >> .filename

but that doesnt work, and i tried to revise many different ways and that doesnt work.

also i need to know how to search for a string in that file and just return to me the value of yes if they found a march or no no match was found.

thanks,
jada
 
Hi,
this was answered in another forum. Please see

thread822-319020
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top