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

Articles found under tag: scripting

It rains pretty regularly, in the shell

By

In a 2-article series here on The Linux Rain last May (part 1 and part2) I described how I used AWK to clean up rainfall data for my home town in Tasmania. The result was a file called rain3 with rainfall totals for each of the 36525 days from 1 January 1916 to 31 December 2015: In this article I…

Read Article

Tweaking uniq -c

By

I often sort lists on the command line and get the frequencies of listed items with the command chain sort | uniq -c. For example, suppose I have a list of "brown" surnames in a file called demo: OK, so there are 7 Brauns in the list, 3 Brouns, and so on. But notice the indentation of…

Read Article

Quick - what time is it in Singapore?

By

If you want to know the local time around the world, Linux has options ranging from plain to gorgeous. The plainest one is the tzselect command, which offers choices in a terminal that lead you to the local time in a single region. Middling-pretty is gworldclock, a little GUI window that can be…

Read Article

A script to find empty fields in a table

By

It's pretty easy to see which fields are empty in the tab-separated table demo (below). The 2nd and 4th field, Col2 and Col4, have no visible characters at all in the rows below the header line: That was simple, but what if the table is huge, with lots of fields and records? Eyeballing for fields…

Read Article

How to tidy copied PDF text with a CoPa script

By

The image below shows a small, demonstration PDF: When I highlight the text in the PDF, only the paragraphs and their internal spaces go to the X, or primary clipboard: When I middle-click-paste from the primary clipboard into a text editor, each line of text in the PDF appears on a new line,…

Read Article

Finding unmatched braces (brackets)

By

Recently I was checking for unmatched braces in a big text file with nearly half a million lines (300+ MB). Was there a closing brace for every opening brace? The text file was called 'beetle' and was actually a tab-separated table with each line divided into 77 fields. What I wanted to do was find…

Read Article

How to use flags in AWK

By

Flags in AWK are variables which are set to either true or false. They're handy for defining ranges over which AWK can act, as shown below. The AWK used here is GNU AWK 4.1.1 (gawk 4). Sometimes flags aren't needed I'll demonstrate with a simple text file called demo, which has 6 lines with 3…

Read Article

Proofreading for illusions with grep and AWK

By

Lexical illusions are very hard to find when proofreading. The most common lexical illusion is a duplicated word, as in this well-known example: A lexical illusion: many people are not aware that the the brain will automatically ignore a second instance of the word 'the' when it starts a new line. …

Read Article

Transposing rows and columns: 3 methods

By

Swapping the rows and columns in a table on the command line would seem to be a fairly easy thing to do. For example, with this tab-separated table (called 'tabbed') as input: get this tab-separated table ('swapped') as output: Datamash Transposing rows and columns is indeed easy if you have the…

Read Article

I think I like backreferences (sometimes)

By

Backreferences are part of the complicated and sometimes confusing world of regular expressions. The basic idea is this: you can substitute any part of a regular expression with a backslash followed by a number, so long as you surround the part to be substituted with round brackets. The command…

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…