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

Articles found under tag: cli

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

Sorting numbers inside text strings

By

I have a script that compiles and sorts museum collection data. One of the data fields is for museum registration codes, and a plain sort doesn't understand that humans expect "KS.99", for example, to come before "KS.100": My script instead uses the magic "-V" option…

Read Article

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

Canonical Reboots Convergence; Introduces the No Desktop Environment

By

Just mere days after the news broke that Canonical would be using the GNOME desktop environment in the default release of the Ubuntu operating system, following the news of the company also dropping the Unity desktop and the greater goal of "convergence", newly re-appointed Canonical CEO…

Read Article

How to build and edit LibreOffice dictionaries

By

When writing or editing scientific-type text in LibreOffice Writer, I rely a lot on its spellchecker. Unfortunately, the scientific terms I'd like to check aren't in the default dictionaries behind LibreOffice's spellchecking routine. There are two ways out of this dilemma. The first is to deal…

Read Article

The buttons of YAD

By

I use the YAD dialog program quite a lot in my shell scripts. Written and maintained by Victor Ananjevksy, YAD is easy to use and has dozens of handy options. In previous Linux Rain articles demonstrating YAD (here, here and here), I used only the default YAD buttons, "Cancel" and…

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

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…