> How can I turn an environmental variable into a User defined variable in Linux?

How can I turn an environmental variable into a User defined variable in Linux?

Posted at: 2014-12-18 
I'm wanting to cut a certain amount of characters from the environmental variable and put it in a user defined variable using a pipe. I already got my code working with the pipe, I just need to know how to make it a user defined variable.