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

IPA Font license added to license list

We recently updated our list of various licenses and comments about them to include the IPA Font license. It is a copyleft free software license for fonts, incompatible with the GPL. Read more

OpenForum Europe Challenges Governments to Walk the Open Format Walk

OpenForum Europe, an advocacy group focusing on IT openness in government, issued a press release earlier today announcing its launch of a new public Internet portal. At that site, anyone can report a government page that offers a document intended for collaborative use for downloading if that document is not available in an OpenDocument Format (ODF) compliant version. The portal is called FixMyDocuments.eu, and you can show your support for the initiative (as I have) by adding your name here (the first supporter listed is the EU's indominatable digital champion, Neelie Kroes). The announcement coincides with the beginning of another initiative, Global Legislative Openness Week, which will involve global activities annd "events hosted by the Legislative Openness Working Group of the Open Government Partnership and members of the parliamentary openness community." A full calendar of events is here. Read more

Nouveau For Linux 3.18 Gains DP Audio, More Re-Clocking

Ben Skeggs sent in his Nouveau DRM driver changes for the drm-next tree of open-source NVIDIA driver improvements that will land in Linux 3.18. With the DRM merge window now closing earlier in the cycle, David Airlie is cutting off new features for the next kernel merge window from landing into drm-next after -rc5 of the current kernel. Thus, this week is the cut-off for new DRM driver functionality aiming for Linux 3.18 with Linux 3.17-rc5 having been released. As such, Ben Skeggs sent in his big batch of Nouveau DRM improvements. Read more

With Android One, Google puts itself firmly back in the OS' driving seat

Under Android One, Google has developed its reference hardware designs — meaning OEMs no longer have to develop and test their own smartphones; they just pick up Google's ready-to-wear versions and get manufacturing. Google already has three local Indian smartphone makers signed up to do just that — Karbonn, Spice, and Micromax — all soon be be selling Google-designed, Android One-powered devices for around $100. Android One uses a stock version of Android, as seen on its Nexus products — meaning no UI customisation is possible — but Google has graciously offered to let OEMs and mobile operators add their own apps to handsets running the OS. The operators don't seem to mind the disintermediation much, and have teamed up with Google to launch Android One mobile plans to coincide with the launch of the new phones. Read more