How do I concatenation two strings in a shell script. I've been searching for an hour and I simply cannot find a good shell programming guide online.
What I'm trying to do is like the following:
list1="dev sys proc"
for i in $list1
(some string operation here)
When all is said and done, I want list2 to contain "dev\|sys\|proc". Please set aside the idea of just setting the value of list2 to "dev\|sys\|proc" in the first place. I have other things I want to do with list1 in another loop. I'm sure there's some sed command to do it, but I'd rather see some way involving a string concatenation.
Sorry if my frustration shows through in this post.