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

10 Portable Apps Every Linux User Should Use

MakeTechEasier: Portable apps allow you to take any program to any PC, and continue using it.

Oracle Linux 6.9 Released with Unbreakable Enterprise Kernel 4.1.12, TLS 1.2

Prominent features of Oracle Linux 6.9 include support for TLS (Transport Layer Security) 1.2 on all system components

Mozilla Firefox 52.0.2 Released to Fix Crash on Startup on Linux, Other Issues

Mozilla Firefox 52.0.2 comes about eleven days after the first point release, versioned 52.0.1,

Orange Pi SBCs offer a choice of 32- or 64-bit SoCs for under $20

The open spec "Orange Pi Zero Plus 2" SBC provides WiFi, BT, HDMI, MIPI-CSI, and a choice of quad-core Allwinner H3 (Cortex-A7) or H5 (-A53) SoCs.

How To Hide Files And Folders in File Manager Without Renaming

Three easy ways to hide files or folders in file manager.

Python Inheritance

LinuxConfig: Inheritance is yet another key concept in Object Oriented Programming, and it plays a vital role in building classes.

GNOME 3.24 Updates Linux Desktop Experience

eWEEK: New update of GNOME desktop environment adds enhanced features, including a new Night Light mode.

Raspberry Pi based computer offers Docker-enabled Real Time Ethernet

Hilscher is prepping a compact, rugged "netPI" computer that merges the features of a Raspberry Pi 3 with those of its "netHAT 52-RTE" dual Real-Time Ethernet RPi HAT

Linux block I/O tracing

Like starting a car with the hood open, sometimes you need to run your program with certain analysis tools attached to get a full sense of what is going wrong - or right.

GamingOnLinux.com Latest Articles

Strategy game 'Cossacks 3' will have a Linux beta on Friday and I have a key for one lucky person

Tags: Steam, Strategy Even though it was supposed to be delayed until April, GSC Game World have announced that there will be a public beta of the…

HEVN, a first-person sci-fi adventure game should have Linux support

Tags: Indie Game, Unity3D, AdventureHEVN [Official Site] was pointed out by GOL follower micha and after taking a look I was impressed, so I spoke to…

Game engine 'Construct 3' is now in open beta, check out my example game

Tags: Toolkit, BetaConstruct 3 [Official Site] is a game engine that requires little to no programming knowledge as it relies on stringing events…

Oxenfree is a clever, narrative driven supernatural thriller you should check out, my review

Tags: Adventure, Steam, Indie Game, GOG, ReviewI finally set aside some time to play the supernatural thriller Oxenfree [Steam, GOG,Official Site]…

Meganoid, a challenging platformer with roguelike elements releases soon with Linux support

Tags: Action, Coming Soon, Indie Game, Itch.io, Platformer, Roguelike, SteamThe latest game from Orangepixel, Meganoid [Official Site, itch.io,…

RUNNING WITH RIFLES has a major update and a DLC announcement

Tags: RUNNING WITH RIFLES [Steam, Official Site] is the rather excellent top-down shooter with RPG elements that has Linux support. A major patch was…

Blazing Chrome, a classic co-op run ‘n gun plans Linux support

Tags: Action, Coming SoonBlazing Chrome is a new co-op run ‘n gun being developed by JoySmasher [Official Site] and they are planning a Linux…

SC Controller, the stand-alone Steam Controller driver and UI has an important bug-fix release

Tags: AppsI've been using a lot of SC Controller [github] to play games with my Steam Controller outside of Steam, but it did have a major issue. I…

Planescape: Torment: Enhanced Edition officially announced with Linux support

Tags: Coming Soon, RPG, Steam, GOGAs expected, Planescape: Torment: Enhanced Edition [Official Site, GOG, Steam] has now been announced with a…

Unreal Tournament updated, weapon animations overhauled and AI improvements

Tags: Action, FPS, Free Game, Unreal EngineUnreal Tournament [Official Site] has been updated with much better weapon animations, AI improvements,…

Sumoman, the hilarious UNIGINE-powered puzzle platformer with physics is now out on Linux

Tags: Steam, Puzzle, Platformer, Review, VideoSumoman [Steam] is a brand new and rather hilarious puzzle platformer powered by the UNIGINE engine. It…

Hollow Knight, the fantastic looking action adventure game has a Linux build being tested

Tags: Action, Coming Soon, Platformer, SteamHollow Knight [Official Site], an incredibly stylish action and adventure game recently launched for…

To no surprise the Cossacks 3 Linux version has been delayed once again

Tags: Steam, Strategy, Coming SoonI have it confirmed that the planned Linux version of Cossacks 3 [Official Site] has been once again delayed and…

Snoost, a new cloud gaming service has opened with Linux support, uses Steam's in-home streaming

Tags: Editorial, AppsThis is an interesting one, Snoost, a new cloud gaming service powered by Amazon AWS supports Linux. It uses Steam's in-home…

Day of Infamy is an absolutely brutal first-person shooter you need to play

Tags: Action, FPS, Indie Game, Steam, ReviewWhen it comes to FPS games based on realism, Linux is in shortly supply. Day of Infamy [Steam] is another…