Language Selection

English French German Italian Portuguese Spanish

CLI Magic: Command-line contact management

Filed under

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

Red Hat and Fedora

Android Leftovers

Zorin OS 12 Beta - Flat white, no sugar

I did not do any other testing, no extensive tweaking, no customization. I felt no need or desire to do so. Now, do remember Zorin OS 12 is still in beta, so we can excuse some of the problems we see here. But others are purely Ubuntu, and have been ported over from the parent distro without any discrimination or any improvements and fixes introduced in the last six months. The big offenders include: multimedia and smartphone support, poor software management, and then the somewhat heavy utilization and slow performance. Zorin is quite pretty but weary on the eyes, it tries perhaps too hard to be more than it is, and overall, the value it brings is negatively offset by the myriad papercuts of its design and the implementation of its unique style, plus the failings of the Ubuntu family. It's an okay choice, if you will, but there's nothing too special about it anymore. It's not as fun as it used to be. Gone is the character, gone is the glamor. This aligns well with the overall despair in the Linux desktop world. Maybe the official release will be better, but I doubt it. Why would suddenly one distro excel where 50 others of the same crop had failed with the exact same problems? Final grade, 5/10. Test if you like the looks, other than that, there's no incentive in really using Zorin. Oh how the mighty have fallen. Read more

PlayStation 4 hacked again? Linux shown running on 4.01 firmware

Hackers attending the GeekPwn conference in Shanghai have revealed a new exploit for PlayStation 4 running on the 4.01 firmware. In a live demo you can see below, once again the Webkit browser is utilised in order to inject the exploit, which - after a conspicuous cut in the edit - jumps to a command line prompt, after which Linux is booted. NES emulation hilarity courtesy of Super Mario Bros duly follows. Assuming the hack is authentic - and showcasing it at GeekPwn makes the odds here likely - it's the first time we've seen the PlayStation 4's system software security compromised since previous holes in the older 1.76 firmware came to light, utilised by noted hacker group fail0verflow in the first PS4 Linux demo, shown in January this year. Read more Also: 'Deus Ex: Mankind Divided' Coming To Linux In November, Mac Port On Hold