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

Articles found under tag: scripting

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 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

How to get nowhere in particular

By

In this tutorial I explain one way to generate a random geographical location, using simple command-line tricks. Latitude and longitude: decimal degrees Latitude runs from 0 to 90 degrees from the Equator to the North Pole, and 0 to 90 degrees from the Equator to the South Pole. Longitude in…

Read Article

News Elsewhere

Linuxtoday.com

Vivid Vervet (15.04) Final Freeze

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

PacketFence v5.0 released

This is a major release with new features, enhancements and important bug fixes.

Why the Classical Desktop is Obsolete

Datamation: What might replace the Linux desktop as we know it?

Linux Kernel 4.0 available in Fedora 22 Alpha

Fedora Magazine: Just because Fedora 22 is delayed doesn't mean we're not using Linux 4...

Drupageddon: SQL Injection, Database Abstraction and Hundreds of Thousands of Web Sites

LinuxJournal: SQL injection is an attack methodology in which malicious SQL code is included in user input

GNOME Builder IDE Gets a Massive Update in GNOME 3.16.1

 softpedia: GNOME Builder 3.16.1 is the first maintenance release of the software and comes today with over 300 changes

Android-based eyeware aims to woo runners and cyclists

 LinuxGizmos: The sports-focused Jet integrates a WQVGA display, 720p camera, Bluetooth, WiFi, ANT+, and GPS.

An Everyday Linux User Review Of openSUSE 13.2

 EveryDayLinuxUser: openSUSE 13.2 is a great alternative to Ubuntu and Debian based systems and provides an extra level of stability over Fedora.

Why It Doesn't Matter for Linux If Windows Becomes Open Source

 softpedia: Microsoft saying that's considering going open source with Windows might seem like a big deal, but it's actually not and I'll explain why.

GamingOnLinux.com Latest Articles

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…

Don't Starve Together To Get 'Reign Of Giants' As A Free Expansion Soon

Don't Starve Together is the official multiplayer version of the excellent survival game Don't Starve, and it will get the original Reign of Giants…

Gratuitous Space Battles 2 Could See A Day 1 Linux Release

Thanks to the machine that is Ethan Lee (a game porter), Gratuitous Space Battles 2 could see a same-day release for Linux. Previously it was…

Aspyr Media Are Teasing A New Game, They Promise Many Penguin Smiles

Aspyr Media have been extremely busy it seems, as they have just sent off code to bring Civilization Beyond Earth up to the same patch level as…

Age Of Wonders III Fully Released On Linux, Some Early Thoughts & A Port Report

Age of Wonders III has been highly requested by Linux fans, and now that it’s fully released I decided to take a look. The developers…

Dying Light Mod Tools & Steam Workshop Release, Both Windows Only Right Now

Another bit of annoyance for Dying Light fans. Techland have release an update for Dying Light adding in workshop support for mods, and the mod tools…

Captain Forever Remix Updated With More Content

Captain Forever Remix is a little favourite of mine, and it's now even better with a bunch of extra content. If you haven't picked it up yet you…