CAT tools are making translators’ lives easier, however, they are not suitable for translating books, poetry, literary texts and one-off client projects. Developing technologies like CAT applications and constantly improving the software is a great way to keep up with the challenges of the modern day and age. Learn how MacUpdate Desktop can install apps on MacUpdate with the simple click of the icon. Plus, keep all your apps updated. Easy-Cat is a GUI for the Terminal cat tool, which can be used to concatenate several files into a single file. In addition, Easy-Cat has the capability of batch processing.
Active6 days ago
I need to join two binary files with a
*.bat script on Windows.
How can I achieve that?
Artem TikhomirovArtem Tikhomirov
10.3k77 gold badges4242 silver badges6666 bronze badges
10 Answers
Windows
type command works similarly to UNIX cat .
Example 1:
is equivalent of:
Example 2:
This command will merge all the vcards into one.
Greg Dubicki
2,49811 gold badge2828 silver badges4545 bronze badges
Nathan JonesNathan Jones
4,97811 gold badge1414 silver badges77 bronze badges
Greg HewgillGreg Hewgill
708k155155 gold badges10381038 silver badges11831183 bronze badges
If you have control over the machine where you're doing your work, I highly recommend installing GnuWin32. Just 'Download All' and let the wget program retrieve all the packages. You will then have access to cat, grep, find, gzip, tar, less, and hundreds of others.
GnuWin32 is one of the first things I install on a new Windows box.
David CitronDavid Citron
21k1818 gold badges5656 silver badges7070 bronze badges
Shameless PowerShell plug (because I think the learning curve is a pain, so teaching something at any opportunity can help)
Free Cat Tool For Mac
Note that
type is an alias for Get-Content, so if you like it better, you can write:
Cats App For MacJay BazuziJay Bazuzi
32.6k1010 gold badges9595 silver badges158158 bronze badges
Just use the dos copy command with multiple source files and one destination file.
You might need the /B option for binary files
simonsimon
3,34177 gold badges2626 silver badges3232 bronze badges
In Windows 10's Redstone 1 release, the Windows added a real Linux subsystem for the NTOS kernel. I think originally it was intended to support Android apps, and maybe docker type scenarios. Microsoft partnered with Canonical and added an actual native bash shell. Also, you can use the apt package manager to get many Ubuntu packages. For example, you can do apt-get gcc to install the GCC tool chain as you would on a Linux box.
If such a thing existed while I was in university, I think I could have done most of my Unix programming assignments in the native Windows bash shell.
sam msftsam msft
If you simply want to append text to the end of existing file, you can use the >> pipe. ex:
JahmicJahmic
6,98877 gold badges4747 silver badges6060 bronze badges
If you have to use a batch script and have python installed here is a polygot answer in batch and python: Mind mapping tool for mac.
If saved as join.bat usage would be:
Thanks too this answer for the inspiration.
Community♦
NoelkdNoelkd
5,68022 gold badges2424 silver badges3939 bronze badges
I try to rejoin tar archive which has been splitted in a Linux server.
And I found if I use
type in Windows's cmd.exe , it will causes the file being joined in wrong order.(i.e. type sometimes will puts XXXX.ad at first and then XXXX.ac , XXXX.aa etc ..)
So, I found a tool named
bat in GitHub https://github.com/sharkdp/bat which has a Windows build, and has better code highlight and the important thing is, it works fine on Windows to rejoin tar archive!
Aaron XuAaron Xu
So i was looking for a similar solution with the abillity to preserve EOL chars and found out there was no way, so i do what i do best and made my own utillityThis is a native cat executable for windows - https://mega.nz/#!6AVgwQhL!qJ1sxx-tLtpBkPIUx__iQDGKAIfmb21GHLFerhNoaWk
I call it sharp-cat as its built with C#, feel free to scan with an antivirus and source code will be made available at request
Ricky DivjakovskiRicky Divjakovski
Not the answer you're looking for? Browse other questions tagged windowscommand-linescripting or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |