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

Articles found under tag: linux-shell

Tips on Tables

By

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

By

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

By

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

By

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

By

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

By

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

By

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

By

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

Linuxtoday.com

How to Setup GlusterFS Storage on CentOS 7 / RHEL 7

GlusterFS is a free and open source file and object storage solution that can be used across the physical, virtual and cloud servers over the network.

iPhones are Buggier than Android Devices: Study

 Datamation: Apple iOS devices are likelier to exhibit problems than Android handsets, according to a study from the Blancco Technology Group.

Red Hat Rebrands Virtualization Technology in New Release

eWEEK: Red Hat Virtualization 4 launched as the open-source vendor works to remain relevant in a world that VMware dominates.

Python vs. C/C++ in embedded systems

The pros and cons of each, and why you should consider Python for embedded programming.

How to Install ONLYOFFICE Desktop Editors on RHEL/CentOS/Fedora

 HowToForge: This tutorial describes how to install ONLYOFFICE Desktop Editors on Rad Hat-based Linux distributions.

How To Turn On Num Lock Automatically On Startup In Linux

 LinuxandUbuntu: One of the frustrating thing in most Linux distros is that the Num Lock is not enabled on startup.

4 Best Linux Boot Loaders

The MBR contains two important sets of information, one is the boot loader and two, the partition table.

GamingOnLinux.com Latest Articles

Action RPG Victor Vran updated with an interesting Dynamic Resolution graphical option, local co-op coming soon

Tags:Action,RPG,Steam Victor Vran is a very good action RPG, if you haven't picked it up yet, just do it already! Anyway, the game has been updated…

Overland, the itch exclusive First Access survival and strategy game is now open to all to buy

Tags:Indie Game,Initial Thoughts,Itch.io,Survival,Unity3DOverland, is a very, very cool survival game and the developers have now expanded their itch…

Quadrilateral Cowboy public Linux beta to go live on Friday

Tags:Beta,Coming Soon,SteamFor those wanting to try out Blendo Games latest with 'Quadrilateral Cowboy', the good news is you will be able to on…

Play as superpowered 'Mr Shifty' in this upcoming top-down action game

Tags:Adventure,Action,Indie GameMr Shifty is a game that clearly was inspired by Hotline Miami, but features different aesthetics and is focused on…

Upcoming ragdoll small platformer 'City Climber' is looking for votes at Steam Greenlight

Tags:Indie Game,Greenlight,PlatformerCity Climber is an upcoming good looking platformer where you need to control a ragdoll character using your…

Kingdom Rush Frontiers is now available on Linux

Tags:Tower Defence,Strategy,SteamKingdom Rush Frontiers the latest Tower Defence game from Ironhide Game Studio has just released for Linux! This…

Vanguard Princess, a popular 2D fighting game is now on Linux & SteamOS

Tags:SteamOS,Steam,Action Fighting games are in short supply on Linux, so Vanguard Princess has come along to help fill the void for us. A few…

Hot Lava announced by Klei Entertainment, Linux support is planned

Tags:Action,Adventure,Coming Soon,Indie Game,SteamKlei Entertainment have announced their next game titled 'Hot Lava'. They are already planning a…

In Case of Emergency, Release Raptor has been cancelled and refunds are being offered

Tags:Early Access,Editorial,Steam Well I didn't see this coming at all, I got told in our IRC moments ago that In Case of Emergency, Release Raptor…

Editorial: I ditched SteamOS in favour of a normal Linux distribution for my gaming

Tags:SteamOS,EditorialI have been debating whether to write this up for a while, but here I am. I have completely ditched SteamOS in favour of Ubuntu…

Agenda, control an organization trying to take over the world in this strategy game

Tags:Coming Soon,Simulation,Steam,StrategyAgenda is a rather cool sounding strategy game where you're trying to take over the world. It's due to…

Sunless Sea expansion Zubmariner releases on October 11th with Linux support

Tags:Survival,Steam,GOG,DLC,Coming SoonSunless Sea is about to get bigger, as Zubmariner has been confirmed for release on October 11th with Linux…

Heart&Slash is another new release that's sadly broken on Linux

Tags:Steam,Adventure,ActionHeart&Slash is a very cool looking action and adventure game, but sadly I can't even tell you if it's any good as it…

The Girl and the Robot, a third-person action adventure game released for Linux, sadly buggy

Tags:Action,Adventure,Initial Thoughts,SteamA brand new third-person action adventure game is now available on Linux. Some of the people who made The…

Stellaris 1.3 patch 'Heinlein' will overhaul Fallen Empires in an awesome way, also new DLC info

Tags:Strategy,Steam,DLC,Coming SoonStellaris 1.3 code-named 'Heinlein' is shaping up to be a pretty big update, and they are re-working Fallen…