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

5 myths busted: Using open source in higher education

 opensource.com: How a PhD student finished his degree in fine arts using Linux.

5 Arduino projects to upgrade your car

The Arduino microcontroller opens doors for auto hobbyists and tinkerers.

Stacer An Alternative To CCleaner And Bleachbit On Linux

LinuxandUbuntu: Previously, I have used Bleachbit on Ubuntu but then I found Stacer and I am not looking back.

TypeCatcher - Download Google Webfonts to Your Ubuntu Desktop

TypeCatcher is a font manager with which you can search, browse, and download Google webfonts to use offline on your Linux workstation.

Buttercup - A Modern Password Manager for Linux

FOSSmint: Buttercup is a cross-platform, free, and open-source password manager

The Linux port of Dawn of War III will use both OpenGL and Vulkan

GamingOnLinux: Feral Interactive have just announced some exciting news

How to delete a non-empty directory when you get directory not empty error on Linux

Nixcraft: How do I delete a non-empty directory in bash terminal running on Linux operating system?

Linux-based gizmo offers remote 3D printer control and sharing

LinuxGizmos: Waggle runs Linux 2.6 on an ARM-based Nuvotron N3292602 SoC with integrated H.264 and MJPEG streaming.

GamingOnLinux Latest Articles

Darkest Dungeon’s expansion, The Crimson Court, set to release June 19th

Tags: DLC, Dungeon Crawler, Roguelike, RPGThe very brutal and fun dungeon crawler will get its first expansion quite soon. Thematically about…

BlindQuest, an interactive audio novel, is looking for votes for Steam Greenlight

Tags: Adventure, Visual Novel, Steam, GreenlightSetting itself apart from the majority of visual novels by focusing on the player’s sense of…

Bounty Train, a game about the Wild West and trains, is set to come to Linux

Tags: GOG, Simulation, Steam, StrategyWith detailed equipment and management aspects, Bounty Train [Official Site] also has plenty of thrills and…

Friday Livestream with Samsai at 5 PM UTC!

Tags: LivestreamWe seem to have made it through another week, for today is Friday! You now have a once in a week (Shovel Knight streams do not count)…

Feral announce that Dawn of War III will use both OpenGL and Vulkan

Tags: Coming Soon, Feral Interactive, Strategy, Vulkan Feral Interactive have just announced some exciting news! The Linux port of Dawn of War III…

Hyper Knights, the Medieval mix of strategy and action is now fully released, multiplayer is coming

Tags: Action, Indie Game, Steam, StrategyHyper Knights [Steam] is one of those titles I previously picked up thinking nothing of it, but it turned…

SteamVR updated with experimental Linux support for SteamVR Home

Tags: Steam, Virtual Reality Valve have pushed out another update to SteamVR, this time Linux has been given experimental support for SteamVR Home.…

Wine 2.9 released with support for Direct3D tessellation shaders

Tags: WineWine 2.9 is now officially available and it's a very interesting one. Fantastic work from the Wine developers. Highlights:Support for…

Planet Nomads officially lands into Early Access

Tags: Early Access, GOG, Initial Thoughts, Sandbox, Steam, SurvivalPlanet Nomads [Steam, Official Site, GOG], the rather fancy looking sandbox…

Some thoughts on possessing dead bodies MidBoss, now on Linux as a day-1 release

Tags: Steam, Indie Game, Roguelike, ReviewI've been playing a bit of MidBoss [itch.io, Steam, Official Site], a new roguelike from Kitsune Games with…

The Culling survival game still broken, despite the attempted fix in the latest patch

Tags: Action, Early Access, Indie Game, Steam, Survival Despite the developers patching The Culling [Steam] today, which claims it addressed the…

Mesa 17.1.1 officially released

Tags: Drivers, Mesa, Open SourceThe Mesa team has officially released Mesa 17.1.1 which is a bug fix release to provide better stability in the open…

Installation 01, the Halo fan-game that will support Linux has a new trailer

Tags: Action, Coming Soon, FPS, Unity3DThe rather epic looking Halo fan-game Installation 01 has a fresh new trailer and it's certainly got me…

Blasphemous is a promising looking dark and brutal non-linear platformer

Tags: Action, Coming Soon, Crowdfunding, Indie Game, PlatformerBlasphemous, a dark and brutal non-linear platformer is currently on Kickstarter and…

Reminder: Update your PC info for the next round of statistics updates

Tags: Survey, Site InfoThis is your once a month reminder to make sure your PC information is correct on your user profiles. A fresh batch of…