Language Selection

English French German Italian Portuguese Spanish

Command line tips & tricks - concatenation with cat

Filed under
HowTos

If you’ve done any sort of command line stuff on a Unix-like OS, you’ve probably come across cat. It stands for ‘concatenate’, but most often we use it to simply spit out the contents of a file, like this:

$ cat myfile

So hang on - why is it called concatenate if we’re only showing the contents of one file? Well, if you give cat one file, it just does that.

As the name suggests however, you can give cat two files and it will - guess what - concatenate them together and throw them out at the end.

Like this:

$ cat fileone filetwo

There, you’ll be given an output containing the contents of both files. Why is this useful? It might not seem it, but there are a number of situations where this could help you.

Full Story.

More in Tux Machines

GNOME 3.26 "Manchester" Desktop Environment Slated for Release on September 13

The GNOME Project published today the preliminary release schedule for the next major version of the popular GNOME desktop environment, GNOME 3.26, whose development will start very soon. Read more Also: GNOME 3.26 Release Schedule Published

SUSE Linux Enterprise High Availability Extension

Historically, data replication has been available only piecemeal through proprietary vendors. In a quest to remediate history, SUSE and partner LINBIT announced a solution that promises to change the economics of data replication. The two companies' collaborative effort is the headliner in the updated SUSE Linux Enterprise High Availability Extension, which now includes LINBIT's integrated geo-clustering technology. Read more

Tizen and Android

Open source is mission critical for Europe’s air traffic

It is entirely possible to use open source in a highly regulated environment such as air traffic control, says Dr Gerolf Ziegenhain, Head of Linux Competence & Service Centre (LCSC) in Mainz (Germany). Open source service providers can shield an organisation from the wide variety of development processes in the open source community. Read more