Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cat command for windows

Tags:

linux

windows

cat

I have 4 files

sitefiles.tar.gz.splitaa
sitefiles.tar.gz.splitab
sitefiles.tar.gz.splitac
sitefiles.tar.gz.splitad

I need a command or program that works like "cat" on linux. that way I can join all the 4 files into 1 file

like image 953
cppit Avatar asked Mar 12 '26 23:03

cppit


1 Answers

Windows Powershell supports cat.

However you can do it even simpler, using a normal console:

copy /b sitefiles.tar.gz.split* sitefiles.tar.gz

This will append all files into sitefiles.tar.gz.

If you want to join specific files, or if you want to append them in a specific order (default is sorting the filenames alphabetical) append them using +:

copy /b sitefiles.tar.gz.splitaa+sitefiles.tar.gz.splitab+sitefiles.tar.gz.splitac+sitefiles.tar.gz.splitad sitefiles.tar.gz
like image 68
Chris Avatar answered Mar 14 '26 16:03

Chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!