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

Articles found under tag: bash

A "Track Changes" script for data cleaning

By

The complicated-looking script at the end of this article is in two parts. The first part detects the changes made when a data table is edited, and reports the changes as a plain-text logfile. It's a straightforward bit of shell scripting based on the diff command. The second part of the script…

Read Article

How to garble

By

In 2003 a strange paragraph made the rounds on email. It read: Aoccdrnig to rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, olny taht the frist and lsat ltteres are at the rghit pcleas. The rset can be a toatl mses and you can sitll raed it wouthit a…

Read Article

DMS to DD to KML with AWK and sed

By

In a 2014 Linux Rain article I describe a fast 'points plotter' for Google Earth. First I copy a list of latitude/longitudes (lat/lons) from a spreadsheet to the clipboard, then I launch a shell script with a keyboard shortcut. The script builds a KML file from the copied list and opens the KML for…

Read Article

Grouping things with AWK

By

In this article I explain one way to group data items with AWK arrays. The code is a little mysterious but the results are impressive, especially in my second example! Case 1: Cricket stats The table 'runs' is tab-separated and lists the 86 national team cricket players who scored (or have so far…

Read Article

Building sequences of numbers on the command line

By

There are two easy-to-use tools for generating numerical sequences. 'Brace expansion' is a BASH shell built-in, while the seq command is included in the GNU/Linux 'coreutils' package. Each tool has its peculiarities and advantages, as shown below. Simple sequences One difference between the two…

Read Article

Building a Desktop Wikipedia Checker

By

I often look something up in Wikipedia when reading non-browser documents, like PDFs, ODTs and emails. I wanted to have a little desktop window for those look-ups - somewhere I could check Wikipedia without opening a browser and without leaving the document I'm reading. This article describes how I…

Read Article

The header line: how to add, delete and ignore it

By

In a plain-text table, the first or header line usually contains the names of the fields. In this article I've pulled together a variety of ways to add and delete a header, and also how to do things with the rest of the table while leaving the header intact as the first line in the file. Add a…

Read Article

Joining Tables on the Command-Line

By

This article compares 3 different ways to join tables on a common field. All 3 work OK on small tables, but there's a big difference in speed when the tables to be joined are large, as shown below. Table joining isn't something you need to do if you store data in a simple, flat-file database like a…

Read Article

Splitting a File Elegantly

By

In a previous Linux Rain article I compared different ways to delete blank lines, and showed that the AWK way was the simplest and most thorough. Here I show how to split a text file into multiple text files using a surprisingly simple AWK command. Background In 2013 I published an article in Free…

Read Article

Tips on getting (and suggesting, and editing) user input

By

In a previous Linux Rain article I explained how to use the YAD dialog to do multiple-item data entry in a GUI. Here I show one way to allow users to check and edit what they've entered in YAD. I also explain how to offer default, editable inputs in terminal-based data entry, and how to color the…

Read Article

News Elsewhere

Linuxtoday.com

GitHub's 2014 Transparency Report

Github: Like most online services, GitHub occasionally receives legal requests relating to user accounts and content, such as subpoenas or takedown notices.

Hosting Your Domain with a RaspberryPi and Cloudns

Linuxphile: In this day and age creating a website and having it hosted is pretty cheap, yet there are still those, myself included, who would rather host their own website and potentially other services on their home network.

Docker Engine 1.6 Debuts Alongside Docker Registry 2.0 and Compose 1.2.0

ServerWatch: The Docker Registry is the code that enables the Docker Hub

Kicking the Tires on an $89 Symple PC

 FOSSforce: The price is nothing if not sweet

How to embrace the open source workforce

 opensource.com: Fundamentally, embracing the open source workforce means changing the way businesses think about themselves and their consumers.

Install Phabricator Software Development Platform

 Unixmen: Phabricator is an open source collection of web applications which help software companies build better software.

Meet the new leader of Debian open source project

 NetworkWorld: Neil McGovern is the new leader of the Debian open source/free software project

Elementary OS 0.3 (Freya) Released: A Quick Review and Installation Guide with Screenshots

 tecmint: Elementary OS is a Ubuntu based GNU/Linux distribution, which started as a theme and application set for Ubuntu.

Vivid Vervet (15.04) Final Freeze

We've entered the Final Freeze in preparation for the release of Ubuntu 15.04.

GamingOnLinux.com Latest Articles

Action Platformer Slinki Released On Steam, A Demo Is Available

Slinki is an action platformer, developed by Titan Forged Games, where you control a rabbit with a prosthetic arm. The game has been available for…

Sales Statistics For Linux Games From Different Developers, Part 4

You would hopefully have seen my previous articles talking to multiple developers about their Linux sales, so to begin a new year we are talking to a…

Fallen: A2P Protocol, A Post-apocalyptic Turn Based Strategy Released For Linux, Some Thoughts

Fallen: A2P Protocol is a pretty good looking turn based strategy currently in Early Access, and I have been graced with a key to take a look at…

Kart Racer 'Coffin Dodgers' Adds Linux Support To Early Access

The early access racer Coffin Dodgers has been updated and now has Linux support. As far as premises go, this one is one of the more original ones…

Freedom Planet Officially Released On Linux

The colourful action platformer Freedom Planet now has been officially launched for Linux.Offical AboutSteamFight your way across the celestial…

Storm United, A Beautiful New FPS Now In Early Access, We Have Keys

Storm United is a new first person shooter built in Unreal Engine that looks absolutely stunning. The developers have just released the game into…

The Wine Development Release 1.7.41 Is Now Available

Wine development team was able to produce a new experimental release today. 1.7.41 bringing many new features and as many as 41 bugfixes. The few…

The Weekly Livestream Is Here At 5.30 PM!

My calender says it's Friday so it's time for The Weekly Livestream! Join in on the fun as I play games live for your entertainment!Watch live video…

Gratuitous Space Battles 2 Released For Linux, Some Thoughts Included

It’s a great time to be a fan of space combat games, and the latest release for us is Gratuitous Space Battles 2 which I’ve taken a look…

The Banner Saga Is Finally Available For Linux

The Banner Saga has been highly sought after from Linux users, and the day has finally come. The new update also adds controller…

The Excellent Crypt Of The NecroDancer Officially Launches This Month

Crypt of the NecroDancer is really awesome, and it's going to exit early access this month. If you love your music it's a fantastic game. I've pumped…

Interstellar Marines FPS Big Update Due This Month, New Online Modes

It’s no secret that we really like Interstellar Marines, but it could do with more content and online modes to keep people interested in it. It…

War For The Overworld Released Out Of Early Access, Conquer The Overworld

War for the Overworld does look like a good spiritual successor to the old Dungeon Keeper games, but it seems it has a way to go yet. I haven't…

BMX Ride - A New Extreme Sports Video Game On Kickstarter

Now this is a type of game we really don't have much of right now, if any? BMX Ride looks like a pretty good extreme sports game to have. I'm…

The Awesome Strategy Game 'Nightside' Has Been Updated, It's Still Awesome

Nightside is one of my current favourites on Steam, and not just because it's a traditional RTS game, but because it just looks so damn cool. See the…