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

Articles found under tag: bash

AWK and a rainfall time series - Part 2

By

In part 1 of this article I showed how I used AWK on the command line to work up daily rainfall data for my home town, Ulverstone in Tasmania. I wasn't ready to analyse the data, because there were quite a few missing-data days. Some were part of accumulated-total series, where the rainfall total…

Read Article

AWK and a rainfall time series - Part 1

By

AWK is my tool of choice for processing plain-text data, so when I wanted to look closely at daily rainfall data for my home town, I fired up a terminal. In this two-part article I explain how the rainfall data were beaten into shape, mainly with AWK, so I could do my analysis. The commands shown…

Read Article

BASH a block of bytes

By

I was preparing a slide presentation and wanted to show a block of random 8-bit bytes, like this: Naturally I didn't just type out that block of text on a slide, which would have taken maybe 10 minutes, or copy and modify some byte-text I found online. Of course not. Instead I spent hours dreaming…

Read Article

grep vs AWK vs Ruby, and a uniq disappointment

By

In my data-cleaning work I often make up tallies of selected individual characters from big, UTF-8-encoded data files. What's the best way to do this? As shown below, I've tried grep/sort/uniq, AWK and Ruby, and AWK's the fastest. The trials also revealed an unexpected problem with the uniq program…

Read Article

Scripting an arithmeticker

By

I've just built my own GUI calculator (script below). OK, you're probably thinking "WHY? There are plenty of perfectly good GUI calculators for Linux. Why build another one?" And my answer is "Because the available calculators are way too powerful and don't do what I want…

Read Article

Tips for tpp and patat

By

You might be surprised to learn that there are programs for running presentations in a terminal. No, I don't mean opening PowerPoint or Impress slides one after the other, as images in a frame-buffered console. I mean presenting slides coded for the terminal, in a terminal. Interesting idea? It…

Read Article

Scottish Country Dancing stats

By

My wife has been in the same Scottish Country Dancing group for many years, and back in 2005 she began keeping a record of the dances done at each meeting. She lists a fair bit of information in her "dances done" spreadsheet (screenshot below). She recently asked me "Would it be…

Read Article

A script to log what my GPS tells me

By

I carry a Garmin Etrex 10 when I go bug-collecting. It's a handheld GPS receiver without many frills, and I only use it to record the latitude and longitude of each of my collecting sites as a waypoint. At the start of a field trip I delete all previous waypoints. When I do this, the trip's…

Read Article

Eek! My rounding is biased!

By

I've written several BASH scripts that use GNU AWK's printf function to round off decimal numbers. Now I've learned that the rounding is biased, and I need to re-do the scripts. For me the desirable way to round off a decimal is to round up if the bit to be discarded is greater than one half, and…

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

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…