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

Implementing Mandatory Access Control with SELinux or AppArmor in Linux

 tecmint: In this article we will explain the essentials of SELinux and AppArmor and how to use one of these tools for your benefit depending on your chosen distribution.

Configuring WINE with Winecfg

LinuxConfig: Many programs work under WINE with absolutely no configuration.

Ubuntu Snappy Core 16 Up to Release Candidate State, Raspberry Pi 3 Image Is Out

For those not in the know, Ubuntu Snappy Core or sometimes called Ubuntu Core is a slimmed down version of the Ubuntu Linux operating system

How To Download A RPM Package With All Dependencies In CentOS

A simple utility to download a RPM package without installing it in CentOS, RHEL, Fedora.

Physical RAM attack can root Android and possibly other devices

 CSOonline: Not only are Rowhammer attacks possible on ARM, but they're even easier to pull off than on x86.

Develop Network Applications for ESP8266 using Mongoose in Linux

 HowToForge: The ESP8266 is an inexpensive chip with integrated WiFi, developed by Expressif.

Benefits Of Using Lightweight Linux Distributions

There are quite a few lightweight linux distributions around

An introduction to Mozilla's Secure Open Source Fund

The SOS Fund is a new effort at Mozilla to support security audits and remediation for open source software projects.

3 Ways to Delete All Files in a Directory Except One or Few Files with Extensions

 tecmint: Sometimes you get into a situation where you need to delete all files in a directory or simply cleanup a directory by removing all files except files of a given type (ending with a particular extension). Latest Articles

'The Wardrobe', a point & click adventure game release date announced, with day-1 Linux support

Tags:Adventure,Indie Game,Point & Click,Steam Point & Click adventure game 'The Wardrobe' [Official Site] to release with day-1 Linux support…

Classic platformer 'Titus the Fox: To Marrakech and Back' now has a Linux version on GOG

Tags:Action,DRM Free,GOG,Platformer,Retro,DOSBox 'Titus the Fox: To Marrakech and Back' [GOG], a platformer from 1992 that was originally released…

2D Tactical RPG 'Dungeon Rushers' is a game you may want to give a look at, demo available

Tags:Demo,Dungeon Crawler,Indie Game,RPG,Steam,StrategyDungeon Rushers was already covered in this previous GOL article, and it has moved to a full…

Human: Fall Flat released DRM free on GOG, a physics-based 3D puzzler

Tags:Indie Game,GOG,Initial Thoughts,Puzzle Human: Fall Flat [GOG, Official Site] was released on Steam back in July, but it now has a fresh DRM free…

Cities: Skylines - Natural Disasters now has an in-game trailer

Tags:Coming Soon,DLC,Simulation,SteamCities: Skylines - Natural Disasters [Official Site] is the next DLC for the city building simulation Cities:…

'Tether' a very promising UE4 first-person adventure game will be coming to Linux

Tags:Adventure,Coming Soon,Horror,Indie Game,Steam,Teaser,Unreal Engine,Video It's not often a trailer leaves me begging for more, but 'Tether'…

If you're in the mood for a decent Zombie survival game, don't pass up on Project Zomboid

Tags:Sandbox,Simulation,RPG,Steam,GOG,Early Access,Survival,Initial Thoughts Project Zomboid [Steam, GOG, Official Site] is the rather good sandbox…

Aspyr Media are reminding Linux gamers not to give up hope on Civilization VI

Tags:Aspyr MediaAspyr Media sent out a tweet today for Linux gamers stating that Civilization VI [Steam] for Linux is still possible. This is a good…

Feral Interactive will be livestreaming Deus Ex: Mankind Divided on Linux at 5PM UTC on Thursday

Tags:Coming Soon,Feral Interactive,LivestreamThis Thursday at 5PM UTC, Feral Interactive will be livestreaming the Linux port of Deus Ex: Mankind…

'A Quiver of Crows', a twin-stick shooter set in a grim world has day-1 Linux support

Tags:Initial Thoughts,Action,Steam,Indie Game I've followed 'A Quiver of Crows' [Steam, Official Site] for a while waiting for the release of this…

SIEGE, a strategic single-player card game released for Linux

Tags:Card Game,Strategy,Steam,Indie Game SIEGE [Steam], a strategic single-player card game recently released for Linux. I love card-based combat…

Pharaonic, the side-scrolling RPG & action game is now available DRM free on GOG

Tags:Action,DRM Free,GOG,Indie Game Pharaonic [GOG, Official Site] the stylish and difficult side-scrolling RPG/Action title is now available DRM…

The isometric typing adventure 'Epistory: Typing Chronicles' is now available DRM-free on GOG

Tags:Action,Adventure,GOG,Indie Game The unique atmospheric adventure typing game Epistory - Typing Chronicles is now available DRM free on GOG. It…

'Discovering Colors - Animals', a cheap colouring game for kids

Tags:Educational,Indie Game,Steam Discovering Colors - Animals [Steam, Official Site] is a cheap kids game about colouring and it recently gained a…

Games to play on Linux this Halloween, my top choices

Tags:Editorial,HorrorSo Halloween is fast approaching, and you want to play something scary, here’s some good ones to try out. It’s tough…