Can we append the content of a file to the value of a variable in the Korn shell? How?/bin/ksh:$ B.11.31  Oct  1 2008 01:54:10 $Version 11/16/88blok.c $Date: 2008/08/20 12:15:51 $Revision: r11.31/1 PATCH_11.31 (PHCO_38683)expand.c $Date: 2008/10/28 10:48:37 $Revision: r11.31/1 PATCH_11.31 (PHCO_38683)builtin.c $Date: 2007/10/25 15:12:29 $Revision: r11.31/1 PATCH_11.31 (PHCO_37285)test.c $Date: 2008/05/01 15:55:23 $Revision: r11.31/1 PATCH_11.31 (PHCO_38162)strdata.c $Date: 2008/08/25 18:24:40 $Revision: r11.31/1 PATCH_11.31 (PHCO_38683)$Revision: @(#) ksh88 R11.31_BL2009_0729_2 PATCH_11.31 PHCO_38683Desired Outputuser@hostname>echo $somevariable value_stored_in_variableuser@hostname>cat somefile value_stored_in_fileuser@hostname>append operationuser@hostname>echo $somevariablevalue_stored_in_variablevalue_stored_in_file
Append the content of a file to the value of a variable in ksh
shell