Windows cmd 中的 Unix 'Cat' 等效命令

Dee*_*ota 2 unix cmd

我一直在尝试在unix和windows环境下编写一些脚本。我在尝试编写等效的 Windows 命令时遇到问题:

cmd = "cat raw_data.txt | awk -F\"}\" '{for(i =1; i<=NF-1; i++){print $i\"}\"}}' | sed 's/^,//' | sed 's/^[ \t]*//;s/[ \t]*$//' | sed 's/^{//; s/}$//'"
Run Code Online (Sandbox Code Playgroud)

小智 5

type file1 >> file2
as 
cat file1 file2 > file3
Run Code Online (Sandbox Code Playgroud)

type 是与 cat 命令等效的类型,但它只能具有其部分功能