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

Linux containers slide into the Windows Server beta

Microsoft and Linux continue to cuddle closer on the cloud and servers.

Two Open Source Licensing Questions: The AGPL and Facebook

RedMonk: In many settings, open source licensing today is considered a solved problem.

Busting the myth that net neutrality hampers investment

At Mozilla we believe the current rules provide vital protections to ensure that ISPs don’t act as gatekeepers for online content and services.

The Future of HHVM

Facebook: Several months ago, PHP officially announced the end-of-life for PHP5.

Early Linux 4.14 Kernel Benchmarks Are Looking Promising

Phoronix: I've begun running some Linux 4.14-rc1 kernel benchmarks and in some areas there appears to be nice gains with this in-development kernel.

Portable Android SDR player supports DRM and DAB

Titus SDR's Android-based "Titus II" Software Defined Radio receiver has a 7-inch touchscreen, a WiFi hotspot, and support for FM, AM, DRM, DAB, and DAB+.

How to use Let's Encrypt to secure your website

ZDnet: Let's Encrypt is easy to use and free -- no wonder it's the most popular Certificate Authority for securing websites.

4 ways to check size of physical memory (RAM) in Linux

4 different commands to get memory information from Linux server.

What's New In Linux Lite 3.6

What's new in the latest Linux lite release?

GamingOnLinux Latest Articles

Arma 3 1.76 for Linux is planned, work on it to start "soon"

Tags: Action, FPS, Steam, Virtual ProgrammingBohemia Interactive have announced in their latest "SITREP" that the Linux version of Arma 3 will be…

The Mooseman, a short side-scrolling adventure just released for Linux

Tags: Steam, Adventure, Indie GameIn the mood for something a little out there? Well, The Mooseman [Steam] a short side-scroller might just hit the…

Stylish FPS 'Morphite' released without Linux support, but it's coming

Tags: Steam, FPS, Adventure, Coming Soon, DelayedSadly, Morphite [Steam] has seen a delay with the Linux version. Thankfully, the developer was quick…

We have a review of XCOM 2: War of the Chosen, Commander

Tags: Strategy, DLC, SteamNow I’ve had a little time with it, here’s some early thoughts on the huge expansion XCOM 2: War of the Chosen…

A look at some great Linux & SteamOS racing games available in 2017

Tags: RacingWe’ve come a long way since SuperTuxKart, here’s my little listicle of interesting racing games available for Linux &…

The SteamWorld Dig 2 launch trailer shows off what lurks in the deep

Tags: Steam, Coming Soon, Indie Game, Platformer, AdventureAre you ready to get digging again? As SteamWorld Dig 2 [Steam, Official Site] launches on…

Valve makes adjustments to user reviews due to review bombing with 'histogram' charts

Tags: Editorial, SteamReview bombing is becoming more and more common, so Valve are looking into ways to sort out the mess that Steam user reviews…

Homestuck adventure game HIVESWAP: Act 1 releases without promised Linux support

Tags: Adventure, Indie Game, Point & Click, DelayedLooks like another possible Kickstarter disappointment. The game Hiveswap: Act 1, by Homestuck…

Setting a primary monitor for launching games in a dual monitor rig

Tags: Hardware, HOWTO, VideoI used to chuckle smugly whenever Liam wrote an article about yet another game that launches on the wrong monitor. That…

Blowing everyone up in EVERSPACE, my thoughts

Tags: Review, Action, Roguelike, Steam, Unreal EngineAfter a long wait, EVERSPACE [Steam] arrived for Linux recently, here’s my thoughts of…

Back to Bed, an interesting and slightly weird puzzle game is currently free on Steam

Tags: Steam, Indie Game, Free GameJust a quick tip here: Back to Bed [Official Site], an interesting and slightly weird puzzle game is currently…

The Humble Very Positive Bundle 2 is an awesome deal

Tags: Game BundleLow on cash? Here to help! The Humble Very Positive Bundle 2 is a damn good deal going right now with great Linux games. For "Pay…

Ostriv, a city-builder set in the 18th century will have Linux support

Tags: City Builder, Coming Soon, Indie GameOstriv [Official Site] is a city-builder built by one developer and I think it looks reasonably…

The developers of "Burst The Game" address the asset flip accusations and say Linux fixes are coming

Tags: Action, FPS, Free Game, SteamBurst The Game [Steam], a free to play online FPS recently launched into Steam Early Access, the problem was it…

Hollow Knight to add a Halloween free content update with lots of new content

Tags: Coming Soon, Action, Platformer, Indie GameNeed more Hollow Knight? Your wish has been answered, as more free content is heading to this…