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

Damn Small Linux A Lightweight Linux Distro For Old Computers

By the name yes it's really small and lightweight

Wine 2.0.2 Brings Better Support for Mortal Kombat X and Microsoft Excel 2010

Among the Windows games that should now work better if you install Wine 2.0.2 on your GNU/Linux distribution, we can mention Mortal Kombat X

Ubuntu 16.10 (Yakkety Yak) Is No Longer Supported, Upgrade to Ubuntu 17.04 Now

Starting today, you should no longer use Ubuntu 16.10 (Yakkety Yak) on your personal computer, even if it's up-to-date.

Blockchain's Future: Nine Predictions

 Datamation: The future of blockchain is sure to be bright.

How to Set-Up Master-Slave Replication for PostgreSQL 9.6 on Ubuntu 16.04

HowToForge: In this tutorial, we will show you how to install and configure PostgreSQL 9.6 Master-Slave Replication on Ubuntu 16.04 server.

Does your software development team use scrum?

Is scrum a part of your team's project management workflow?

Wireshark, World's Most Popular Network Protocol Analyzer, Gets New Release

Wireshark 2.2.8 comes about one and a half months after the 2.2.7 release to patch security vulnerabilities that have been discovered in the application

Code::Blocks IDE Review

Codeblocks is an Integrated Development Environment (IDE) for programmers and developers.

GamingOnLinux Latest Articles

Shadow Warrior: Special Edition is currently free on the Humble Store

Tags: Action, FPS, Free Game, Humble Store, SteamYou can now grab the silly and over-the-top FPS chock full of blood, demons and swords for free for…

Total War: WARHAMMER Norsca DLC set to raid Linux before too long

Tags: DLC, Feral Interactive, Steam, StrategyThe latest DLC for the fantasy-themed Total War game will be brought over by Feral Interactive. This DLC…

Thursday Madness, a quick look at some good Linux gaming deals

Tags: Game SaleWelcome to another late sales article here at GOL. Another quick look at some good deals you shouldn't pass up! First up, Shadow…

Cyberpunk horror game 'Observer' from Bloober Team & Aspyr Media will likely see a delayed Linux release

Tags: Adventure, Aspyr Media, Coming Soon, Horror, SteamSlightly sad news today, as the amazing looking Observer [Steam, Official Site] from Bloober…

Trains & Things, a multiplayer focused economic strategy game built on Linux

Tags: Coming Soon, StrategyTrains & Things [Official Site] has been announced as a multiplayer focused economic strategy game, it's built on…

God game 'The Universim' now has a demo to try on Steam

Tags: Alpha, Demo, Indie Game, Simulation, SteamGod game 'The Universim' [Official Site, Steam] now has a demo available on Steam if you're wanting…

OpenRCT2, the open source RollerCoaster Tycoon 2 game engine has another update

Tags: Game Engine, Open Source, SimulationA good one to keep an eye on for fans of RollerCoaster Tycoon 2, as OpenRCT2 [Official Site], the open…

The emulator 'Dolphin' is now available as a libretro core

Tags: EmulationFor the emulation fans amongst our readership, you might be pleased to know that libretro [Official Site] now supports the…

Harold Halibut, a clay animation adventure game, set in a spaceship stuck under sea will have Linux support

Tags: Adventure, Crowdfunding, Coming SoonHarold Halibut [Kickstarter, Official Site] is an interesting sounding adventure game set in a spaceship…

Tangledeep is a very sweet dungeon crawler that's now in Early Access, I love it

Tags: Roguelike, Steam, Early Access, Indie Game, Initial Thoughts, Dungeon CrawlerTangledeep [GOG, Steam, Official Site] is a colourful and cute…

Editorial: No, Valve is not killing SteamOS or the Steam Controller

Tags: EditorialAnother day, another journalist claiming that Valve is killing SteamOS (amongst other things mentioned) and it couldn't be further…

The fantastic Early Access sandbox space game 'Avorion' has a huge update named 'Alliances'

Tags: Early Access, Sandbox, SteamI was impressed by Avorion [Steam], very impressed. It's one game I'm considering getting us a server for when it's…

The Templar sounds like the most fun unit yet coming to XCOM 2: War of the Chosen

Tags: Coming Soon, DLC, Steam, StrategyXCOM 2: War of the Chosen [Steam] has another new unit reveal, this time it's for The Templar, another one we…

The Humble Telltale Games Bundle seems to have at least one Linux game coming (updated: nope)

Tags: Game BundleUPDATE: Turns out it is an error:QuoteIt is a generic graphic that we use for the "More games coming soon" section, which contains…

Wonder Boy: The Dragon's Trap released for Linux, tools included to mod the game too

Tags: Retro, Platformer, Action, SteamWonder Boy: The Dragon's Trap [Official Site, Steam, Humble Store] a remake of Wonder Boy III: The Dragon's…