echo $ (cat you need file) >>./destination File
use cat to get the file content you want, and then write using echo. The problem is that the \ n acquired by cat may fail. If it is used purely as an ACM input test data, there is some value. --Of course it can be generated directly:python generates test data
$? Used to return the execution result of the previous program;
The diff file File2 is used to determine if two files are the same--if the same, returns 0. Can be viewed with a previous command.
The simple difference between echo and cat:
1. To see what the content of a file is, you can use cat, such as cat/etc/reslov.conf, to show the specific contents of the file reslov.conf. 2. While Echo does not have such a function, he will display the contents of the echo behind as a string, such as echo Hello, will show Hello, such as echo/etc/reslov.conf, will show/etc/reslov.conf
Citation from: http://zhidao.baidu.com/link?url= Dysou7ftn4qgpfd3hoasnsgacsdtbs6dkjhdbiu8ekgdosrgp0ynvxutsybdsb8frsssarl4dwsjh14fwmtmqw4tuupnz0hehrqfk2nuq9_