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

A hitchhikers guide to troubleshooting linux memory usage

 techarena51: This post will hopefully show you how to troubleshoot or at least find out the amount of memory used by Linux and an application running on it

HowTo: Linux Check Password Strength With Cracklib-check Command

 nixcraft: Using the same password on different servers allows attackers to access your accounts if cracker manage to steal your password from a less secure server.

Microsoft and Linux: True Romance or Toxic Love?

LinuxJournal: Common sense says that Microsoft and the FOSS movement should be perpetual enemies.

BSIMM's Data-driven Approach to Software Security

 eSecurityPlanet: The Building Security in Maturity Model's sixth edition features recommendations gleaned from software security practices of more than 100 companies.

Mirantis and FusionStorm Partner on OpenStack Datacenter Appliances

 The VAR Guy: Mirantis, the OpenStack vendor, and datacenter company FusionStorm have joined forces to provide "turnkey" open source cloud computing solutions for the enterprise.

Will open source Qora solve Bitcoin's biggest problems? A core developer behind the open source cryptocurrency Qora explains how blockchain technology will revolutionize everything.

How to install Nginx as Reverse Proxy for Apache on Ubuntu 15.10

 HowToForge: Nginx is not just a web server, it can be used as a reverse proxy for many protocols

Vendetta Curse of Raven's Cry Is Another Sad Linux Game Port

Phoronix: The minimum requirements are Ubuntu 15.10 with "OpenGL version 2.0" and a graphics card that's GeForce GTX or Radeon HD 5000 series with at least 1GB of video memory.

Android Studio 2.0 preview gives developers instant preview of code changes

el reg: Latest developer tool also adds GPU profiler, Java to native debugging Latest Articles

The Escapists and all of the DLC now DRM free on GOG for Linux

Tags:Stealth,GOG,DRM Free,Adventure,Action GOG have now put up the Linux versions of the original The Escapists along with all the DLC, so you can…

Some thoughts on Xenonauts the XCOM inspired strategy game, now it’s native on Linux

Tags:Strategy,Steam,Initial Thoughts,Humble Store,GOG I love XCOM, you should all know this by now. It’s one of the best strategy games…

The Zotac Steam Machine ZBOX NEN SN970 impressed OC3D in their review

Tags:Steam,Review,Hardware,Editorial Some good news about the whole Steam Machine parade, OC3D did a pretty long review of the ZBOX NEN SN970 and…

Western style top-down shooter '12 is Better Than 6' released on Steam for Linux

Tags:Steam,Initial Thoughts,Adventure,Action12 is Better Than 6 was funded on Kickstarter last month and is already available as a full release on…

Wine 1.8-rc2 released, brings more stability

Tags:Open Source,WineThe Wine developers are continuing towards a stable 1.8 released, and they have released Wine 1.8-rc2. They have fixed a total…

You there, come watch the Friday Livestream at 6 PM UTC!

Tags:Site InfoAfter a long week of exams (school stuff, not medical) I'm glad I can finally sit down and relax a bit while playing video games.…

GOG have put up some serious classics for Linux, such as Cannon Fodder

Tags:Retro,GOG,DRM Free I do love GOG for their classic games, and what a delivery they have for us today, wow! Cannon Fooder 1 & 2, Leisure Suit…

Our Games Republic store has a sale on, and we have an extra discount for you

Tags:Game Sale For those who don't know already, we have our own store on Games Republic (we get a small cut!). Since it's 'Black Friday' we also…

A 2015 Thanksgiving Retrospection About The Open Source Project 'xoreos'

Tags:Open Source,Game Engine,Editorialxoreos is a FLOSS project aiming to reimplement BioWare's Aurora engine (and derivatives), covering their games…

0 A.D. Alpha 19 “Syllepsis” Released

Tags:Strategy,Open SourceA new alpha release of the open source RTS 0 A.D. has just been released. The new release has various technical improvements…

Feral Interactive have a big sale on their store

Tags:Game Sale Here's an easy chance to snap up some cheap ports from Feral Interactive, as they have discounted their games until November 30th.…

Dying Light's DLC The Following will be on Linux, price set to rise soon

Tags:Zombies,Survival,Steam,RPG,DLC,Coming Soon,Action I have it straight from the developer that Dying Light's DLC The Following will be on Linux,…

Doorways: Holy Mountains of Flesh tested on Linux, very freaky

Tags:Adventure,Early Access,Horror,Steam Today I decided to have a glass of man-up juice and actually play Doorways: Holy Mountains of Flesh. It's…

Hollow Knight looks like exactly the type of action platformer I would play on Linux

Tags:Action,Coming Soon,DRM Free,Platformer,SteamHollow Knight's trailer took me by surprise, not only do the graphics and animations look really…

GhostControl Inc, the ghost hunter turn-based strategy game has a big update

Tags:Indie Game,Steam,StrategyGhostControl Inc is a pretty cool idea, and one to try for fans of things like XCOM and Ghostbusters, the developers…