I have a file which contains only one line
$> cat file.txt
apple,orange,cat,dog
I need to append two String to it and assign it to a variable, one in front and another in the end, so that it becomes:
var=key,apple,orange,cat,dog,ending
so that I can use the $var somewhere else...
May I know how could I do that in bash script? Or any linux command can do that? Thanks.