Deepak Thota
Deepak Thota

Reputation: 97

Unix 'Cat' equivalent command in Windows cmd

I have being trying to write some scripts in both unix and windows environment. I am facing problem when trying to write equivalent windows command for:

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/}$//'"

Upvotes: 2

Views: 39208

Answers (2)

ishant kaushik
ishant kaushik

Reputation: 951

You can use copy /b like this:

copy /b file1+file2 newfile

Upvotes: 0

Coder_Wolfy
Coder_Wolfy

Reputation: 124

type file1 >> file2
as 
cat file1 file2 > file3

type is the one used equivalent to cat command but it can have only part of its functionality

Upvotes: 5

Related Questions