File1
内容:
line1-file1 "1"
line2-file1 "2"
line3-file1 "3"
line4-file1 "4"
Run Code Online (Sandbox Code Playgroud)
File2
内容:
line1-file2 "25"
line2-file2 "24"
Pointer-file2 "23"
line4-file2 "22"
line5-file2 "21"
Run Code Online (Sandbox Code Playgroud)
perl/shell脚本执行后,File2
内容应该变成:
line1-file2 "25"
line2-file2 "24"
line1-file1 "1"
line2-file1 "2"
line3-file1 "3"
line4-file1 "4"
Pointer-file2 "23"
line4-file2 "22"
line5-file2 "21"
Run Code Online (Sandbox Code Playgroud)
即File1
在File2
包含“指针”的行之前粘贴in的内容。
我们如何跨多个终端保存或维护相同的历史记录?
同样的问题,但对于 bash shell ,在下面的链接中进行了讨论
让我知道 tcsh shell 的相应设置?