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

today's howtos

Raspberry Pi: A closer look at Raspbian PIXEL

Over the past three posts, I have looked at a number of different Linux distributions for various models of the Raspberry Pi - including SUSE/openSUSE, Fedora, Manjaro and Ubuntu MATE, and PiCore Linux. What I haven't done yet is look at the latest version of the Raspberry Pi Foundation's own Linux distribution, Raspbian with their PIXEL desktop. So I will look at that first, and then I will wrap this series up. I know that I just recently wrote about Raspbian PIXEL, but that was a sort of "what's new" overview, and in this post I want to go much deeper, and in a lot more detail, to provide some comparison to the other Linux distributions that I have been testing. So please bear with me... Read more

Linux Kernel News

  • Linux: Why do people hate systemd?
    systemd has caused an almost unending amount of controversy in the Linux community. Some Linux users have been unyielding in their opposition to systemd, while others have been much more accepting. The topic of systemd came up in a recent thread in the Linux subreddit and the folks there did not pull any punches when sharing their thoughts about it.
  • PulseAudio 10.0 Linux Sound System Released, Offers OpenSSL 1.1.0 Compatibility
    Today, January 19, 2017, sees the official release of the PulseAudio 10.0 open-source sound server for Linux-based operating systems, a major version that introduces many exciting new features. PulseAudio 10.0 has been in development for the past seven months, since the June 22, 2016, release of PulseAudio 9.0, which is currently used by default in numerous GNU/Linux distributions.
  • Linux is part of the IoT security problem, dev tells Linux conference
    The Mirai botnet? Just the “tip of the iceberg” is how security bods at this week's linux.conf.au see the Internet of Things. Presenting to the Security and Privacy miniconf at linux.conf.au, embedded systems developer and consultant Christopher Biggs pointed out that Mirai's focus on building a big DDoS cannon drew attention away from the other risks posed by insecure cameras and digital video recorders.
  • The Linux Foundation Brings 3 New Open Source Events to China
    LinuxCon, ContainerCon, and CloudOpen will be held in China this year for the first time, The Linux Foundation announced this week. After the success of other Linux Foundation events in the country, including MesosCon Asia and Cloud Foundry Summit Asia, The Linux Foundation decided to offer its flagship LinuxCon, ContainerCon and CloudOpen events in China as well, said Linux Foundation Executive Director Jim Zemlin. “Chinese developers and businesses have strongly embraced open source and are contributing significant amounts of code to a wide variety of projects,” Zemlin said. “We have heard the call to bring more open source events to China.”

Dell Has Sold ‘Tens of Millions’ Dollars’ Worth of Linux Laptops

So popular Linux personality Bryan Lunduke, who recently took an hour out to talk to Dell’s Senior Architect in the office of CTO — try saying that with a mouthful of doughnut — Barton George. What did he learn? Well, for one, Dell says it has ‘no plans’ to start shipping its Linux-powered developer laptops with anything other than Ubuntu. Read more