r/linux4noobs • • 1d ago

shells and scripting a practical command line example

sometime ago there was a question like "what to use command line for?" on r/linuxquestions so I would like to provide a practical real world little example:

I got this directory full of VCF contact files and I wanted to load all of them to Google Contacts

clicking one by one is tedious and running some web-based automation on Google is too much (and they will think I am a bot)

luckily the format of multiple contacts in one VCF is just two of more contacts stuck together

so I can use the "cat" Linux/Unix command, one of its uses can be to "paste" more text files together

cat *.vcf > ../contacts.vcf

and then upload contacts.vcf to Google and all contacts are there

one command, one click and there it is :)

2 Upvotes

2 comments sorted by

3

u/atlasraven council member but not master 1d ago

Command line is great for doing anything in batches. Renaming files, listing duplicates, or converting.

1

u/LeateWonceslace 1d ago

A big advantage to Command Line is that you can use the programs to make scripts. Aliases and scripts make the foundation of my terminal workflow.