Language Selection

English French German Italian Portuguese Spanish

CLI Magic: Command-line contact management

Filed under
HowTos

There's an ancient Unix practice of keeping a system-wide phone directory in /usr/share/ with one-line entries containing name, location, and number, and a shell script named something like phone or tel that calls grep to output lines that match whatever arguments you give. You can improve on that method to create a personal contact manager with surprising speed and power.

My requirements for an address book and contact manager are simple. I just want to be able to search and view records whenever I need them, from the command line and a text editor. I don't want to have to start up one of the many standalone applications for this purpose, which all have their own sets of dependencies, file formats, and editing commands. And since I work on a single system and share the data with no one, rigging up a home LDAP (Lightweight Directory Access Protocol) setup is overkill.

Furthermore, this contact manager should be usable whether I happen to be in X or at a console, and perfectly accessible over a slow text-only network line. It should let me cut and paste addresses and contact information from the Web, email, and any other application I might run. There should be no forms to have to complete for each record, and no concept of "required fields" -- each record should be able to contain as much, or as little, information as I happen to have.

With a plain-text file and a few handy tools like awk, you can easily accomplish all of the above.

Full Story.

More in Tux Machines

Android Leftovers

The Past Week in Techrights (Still on Holiday)

First LXQt-Based Lubuntu 17.10 Daily Builds Surface, Here's What It Looks Like

Lubuntu maintainer Simon Quigley was kind enough to inform us today about the availability of the first daily build ISO images of the upcoming Lubuntu 17.10 (Artful Aardvark) operating system, with the LXQt desktop environment. The development cycle of the Ubuntu 17.10 (Artful Aardvark) operating system started two months ago when Canonical's Adam Conrad gave the green light to all maintainers and developers involved in the project, and the first Alpha milestone is now approaching fast. Read more

Mageia 6 RC

  • Mageia 6 Reaches Release Candidate Phase
    After being challenged by set backs, Mageia 6 is out in release candidate form.
  • Mageia 6 RC, we are nearly there
    Everyone at Mageia is exceptionally happy and proud to announce the availability of the release candidate of Mageia 6. It has been a long road, but we are at the last step and Mageia 6 is just around the corner.
  • Mageia 6 Linux Distro Reaches RC State, Ships with Linux 4.9 & X.Org Server 1.19
    "The extra time that this release has taken has had one huge benefit: the number of new and exciting additions to Mageia is staggering. They include the now far more mature Plasma to replace KDE4, the DNF and COPR stacks to supplement urpmi, big updates to the major desktops and the other large stacks and components, and lots of package updates," said Donald Stewart in the release announcement.