The Linux Rain Linux General/Gaming News, Reviews and Tutorials

Articles found under tag: linux-shell

Tips on Tables


Big data or small data, a lot of it comes these days as plain text arranged in rows and columns. Here are a few tips on working with tables of text, both in text editors and on the command line. CSV isn't what it seems. Text tables are often exported from databases and spreadsheets as…

Read Article

A Pivot Table In AWK


GNU AWK is a great tool for working with tables of data, and by using AWK arrays, you can quickly do column sums (and other calculations) based on unique values in another column (see below). Pivot tables in AWK are a bit trickier. In this article I do a slow walk through the code for a simple…

Read Article

Why I (sometimes) love regular expressions


Command line wizards are forever encouraging the rest of us to learn regular expressions (regex). We're told regex is elegant, powerful and incredibly useful. The downside is that regex can be seriously fiddly. One fly-spot out of place, and the code fails. For this reason I only use 'non-simple'…

Read Article

Scripting a 'Find-and-Replace' for big text files


EDIT 26/04/2014 I wrote the original fandr script to do single-word replacements in big files. To do multiple-word find-and-replace, the 'needle' variables have to be double-quoted, as in the revised script below. An example of a multiple-word replacement is at the end of this article. I use two…

Read Article

Multiple-item data entry with YAD


YAD (Yet Another Dialog) creates GUI dialogs for data entry, user notification, etc. It was written by Victor Ananjevsky and is described as a fork of Zenity. In fact, it greatly extends Zenity and has a very large number of handy options. Here I explain how to build a multiple-item data entry form…

Read Article

Scripting an OCR text archiver for Trove


Trove is the National Library of Australia's online database. It contains almost 400 000 000 digital items, including Australian newspaper articles from 1803 to 1954. Trove's newspaper portal is particularly useful. You can view an entire digitised newspaper page, or select (or search for) an…

Read Article

How to kill blank lines elegantly


If you do a Web search for 'linux delete blank lines' you'll find lots of command-line advice. Some of the advice, though, only applies to special cases. Here I explain two elegant and general methods for finding and deleting any blank lines in a text file. As a sample text I'll use the 8-line file…

Read Article

Building a gazetteer table from KML files


Geoscience Australia has a freely downloadable gazetteer of Australian placenames with more than 370 000 entries. The download is a .zip file (83 mb) containing a user guide together with placenames data in GML, KML and Microsoft Access (.mdb) formats. What I wanted from all that data was a simple…

Read Article

News Elsewhere

What CIOs need to know about microservices and DevOps

 EnterprisersProject: Electric Cloud, Inc. CTO Anders Wallgren discusses microservices, DevOps, and 3 rookie mistakes to avoid.

SteamOS Brewmaster Now Has Improved Auto-Repair Function

 softpedia: Valve seems to put a lot of effort into the SteamOS Brewmaster branch,

An OpenStack security primer

superuser: Meet the troubleshooters and firefighters of the OpenStack Security project and how you can get involved.

Docker Founder Sets Up School to Help Next Generation of Developers

eWEEK: The method for educating developers in Europe comes to American shores, via the new Holberton School, which uses project-based methods to train developers.

HP Launches OpenSwitch Linux Network Operating System

Enterprise Networking Planet: HP-led effort will compete with Cumulus and Big Switch, but it won't displace existing firmware on many of HP's own wired and wireless switches.

Deploy a Go (golang) application to a minimal sized Docker container

Giant Flying Saucer: Docker and Go have both been getting a lot of attention and rightfully so for the particular problems each one solves.

Introducing the New Manjaro Linux JWM (Joe's Window Manager) Edition

Introducing the New Manjaro Linux JWM (Joe's Window Manager) Edition

No, Microsoft Is Not Buying Canonical

 NO, just plain simple NO Latest Articles

Co-Op Stealth Game Clandestine May See A Linux Port

A developer from Logic Artists has shown renewed interest in porting their Early Access stealth game to Linux, though still being careful not to make…

Postal 1 Updated With Twin Stick Gamepad Controls, Possible Source Code Release & Sale

I have to hand it to RWS, they do support their games pretty nicely. Not only has Postal 2 been updated, but they have gone back updated Postal 1…

This War Of Mine Finally Fixed For Linux, Includes Other Fixes & Workshop Support

It's been a few months, but 11bit finally fixed up This War of Mine for newer Linux distributions. Previously it wouldn't launch due to a glibc issue…

ILikeMoney Is One Of The Weirdest Games I've Seen For A While, I Like It

The developers of iLikeMoney emailed their game in, and it took me by surprise for how unique it looks. You should take a look at this. They have…

Scraps: Modular Vehicle Combat Released For Linux, Looks Like Fun

Scraps: Modular Vehicle Combat is one of the types of games that I simply love, there's nothing more fun that building your own death machine. The…

Red Eclipse: A Lightweight, Open-source, Highly-engaging FPS

Red Eclipse ranks among my top five FPS games of all time, which is surprising given how light-weight and feature-less it is when compared to AAA…

Trine 3: The Artifacts Of Power Linux Beta Released

After waiting a while, we now have access to Trine 3: The Artifacts of Power in beta form. There are a number of issues though. You can find the…

New Linux Gaming Survey For October

It's that time of the month again Linux gamers! The new GOL survey for October is now available, so please make sure to fill it in if you have the…

Polychromatic Is A Fantastic Arcade Game Now On Linux

Polychromatic is probably one of my favourite new releases recently, it's so simple, but it's highly addictive. Myself and Samsai have had access for…

Sol 0 Has You Colonizing Mars In This Strategy Game

Ever wanted to colonize Mars? Well in Sol 0 that's the aim of the game, and it looks like it could be quite cool. It's currently in the early stages,…

Party Hard, A Stealth Strategy Game Is Now On Linux, Looks Interesting

Party Hard has recently released for Linux, and it looks like a pretty interesting game. You need to infiltrate your noisy neighbours parties, and…

The Latest Steam Hardware Survey Shows Very Little Difference

As usual Steam has produced their monthly hardware survey, and also as usual there is hardly any change across the platforms.September 2015 Ubuntu…

The Friday Livestream Is Once Again Here To Save You At 5 PM UTC!

And once again we return after a week of that silly life stuff and play some Linux games for you live on air! You will naturally get the front-row…

The Journey Down On Kickstarter, Funding Final Chapter Of Point-And-Click Trilogy

SkyGoblin has launched their Kickstarter campaign to fund the third and final chapter of the popular afro-noir point-and-click saga and are off to a…