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

Tech Comics: Great Results

 Datamation: Sometimes what's considered "great results" can be remarkably less than thrilling.

5 DevOps leadership priorities in 2018

Five key areas DevOps leaders and teams should strive to improve in the New Year.

adcli - Easy Way To Join RHEL/CentOS System To Active Directory Domain

adcli is a command line tool that help us to integrate or join Linux systems such as RHEL & CentOS to Microsoft Windows Active Directory (AD) domain.

Command line fun: Insult the user when typing wrong bash command

Nixcraft: You can configure sudo command to insult user when they type the wrong password.

How to Install Fedora 27 Alongside With Windows 10 or 8 in Dual-Boot

This tutorial will guide you on how to install Fedora 27 Workstation in dual boot with Microsoft Windows 10 Operating System pre-installed on a BIOS firmware machine.

Record and Share Terminal Session with Showterm

You can record a terminal session with any screen recording program, but Showterm for Linux makes it very easy to record and embed on a site. Here???s how it works.

You can record a terminal session with any screen recording program, but Showterm for Linux makes it very easy to record and embed on a site. Here???s how it works.

How To Use YUM History Command To Rollback An Updates In RHEL/CentOS Systems

Yum history command allows administrator to rollback the system to a previous state on CentOS and RHEL Systems.

How to Install Icinga 2 Monitoring Tool on Debian 9.2

HowToForge: In this guide we will discuss how to install and configure the latest version Icinga 2 web monitoring tool

Slax Linux Distro Gets New Release After Two Years, Drops Slackware for Debian

Slax 9.2.1 is now available for download as the latest stable release of the Linux distro

GamingOnLinux Latest Articles

Colony building sim 'RimWorld' is now in Beta, with lots more content on offer

Tags: Strategy, Steam, Humble Store, Simulation, SurvivalTo say the RimWorld [Humble Store, Steam, Official Site] Beta is a big update might be a…

Fun free to play vehicle combat game 'Robocraft' updated with a new major building tool

Tags: Steam, Free Game, ActionI greatly enjoyed my time with the free to play vehicle combat game Robocraft [Steam], but the actually building wasn't…

Stardock is planning to release 'Star Control: Origins' on Linux

Tags: Adventure, Action, Strategy, RPG, SteamIt seems Ashes of the Singularity won't be the only Stardock game coming to Linux, as they've said Star…

Among the Sleep - Enhanced Edition, a free update to a great horror game

Tags: Horror, Indie Game, GOG, SteamAmong the Sleep - Enhanced Edition [GOG, Steam] is one I missed due to the stress of moving, which released at…

Friday Livestream with Samsai at 6 PM UTC!

Tags: LivestreamHey! You might not believe it but it's Friday today! And as is typical of a Friday here at GOL, we have a livestream for you! So, get…

Completely free top-down shooter CS2D is now on Steam

Tags: Free Game, Action, SteamCS2D [Steam, Official Site] is a top-down shooter heavily inspired by Counter Strike 1.6 and it's now available on…

Looks like the open-world FPS 'The Signal From Tölva' is now on Linux

Tags: Action, Open World, FPS, Steam, Indie GameThanks to a user comment on one of our older articles, we've been informed that The Signal From…

The developer of Siralim and Siralim 2 has blogged about supporting multiple platforms

Tags: MiscWhile not too in-depth on the technical side of things, the developer of Siralim [Official Site] and Siralim 2 [Official Site] has blogged…

Jump Gunners is a pretty hilarious action platformer now on Linux

Tags: Steam, Action, Platformer, Local co-opIn Jump Gunners [Steam, Official Site], as the name might suggest, you use your gun to propel you around…

Planet Nomads is about to get a lot more interesting

Tags: Steam, Early Access, Sandbox, Survival, Adventure, GOGPlanet Nomads [GOG, Steam, Official Site], the Early Access singleplayer sci-fi sandbox…

GOG now has 'West of Loathing' on their store, including a Linux version

Tags: GOG, DRM Free, Adventure, Comedy, RPGThe comedy adventure game West of Loathing [Official Site] is now available DRM free on GOG and they have…

Build a fleet and go to war in Battlevoid: Sector Siege, now out with Linux support

Tags: Strategy, Steam, Indie GameBattlevoid: Sector Siege [Steam] is a real-time strategy game about spaceships battling it out, it's now out with…

Tannenberg, the standalone expansion to Verdun, explodes into Early Access

Tags: FPS, Action, Early Access, SteamThe Eastern Front just got a little bit busier. The standalone expansion to the WW1 FPS pits Russians versus…

Crusader Kings II: Jade Dragon now available, my thoughts on all the kowtowing and tribute

Tags: DLC, Review, Steam, StrategyThe latest expansion to the medieval grand strategy game focuses on the East and the splendors of China. I had the…

Europa Universalis IV: Cradle of Civilization now available, here’s some thoughts

Tags: DLC, Review, Steam, StrategyThis ambitious DLC adds new shiny toys to nearly every nation of the Near East. I did my best to navigate religious…