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

Articles found under tag: scripting

Some baby name problems

By

No, these aren't homework problems from a computer science class. They're interesting head-scratchers based on a data-analysis project I worked on recently, with the data 'reimagined' here for simplicity but with the underlying problems intact. We'll start with boys and girls, which are text files…

Read Article

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

News Elsewhere

Linuxtoday.com

Linux secrets most users don't know about

 ITworld: A reddit discussion that focused on things about Linux that most users don't know has gotten tons of responses, and some of them are quite interesting and informative.

OpenStack isn't just ready for enterprise adoption, it's already there

 ZDnet: Forrester still worries about OpenStack in the enterprise.

Akanda Pledges to Keep SDN Tech for OpenStack Open-Source

EnterpriseNetworkingPlanet: VIDEO: Henrik Rosendahl, CEO of Akanada discusses his company's open-source SDN efforts for OpenStack

How Cisco Enabled Comcast to Be an OpenStack Contributor

VIDEO: Lew Tucker, vice president and CTO of cloud computing at Cisco, discusses his firm's OpenStack efforts, internally and with customers.

Cloud Driving HP's Server Business Forward

Datamation: HP reports its second quarter fiscal 2015 results as the company continues to prepare for its big separation.

Fedora 22 is “Go” for May 26!

Fedora Magazine: That’s right — the bits are heading out the door

Why Do People Contribute to Open Source Projects?

Make Use Off: Open source development is the future of software.

You've come a long way, Inkscape: Open-source Illustrator sneaks up

el Reg: Inkscape recently released version 0.91 of their eponymous open source vector graphics application.

Ubuntu's Shuttleworth's call to arms in open source stirs up controversy

Network World: Some seemingly harmless comments on the state of the open source community were met with debate.

GamingOnLinux.com Latest Articles

Interloper, A New Small Scale Real Time Strategy Released For Linux, It’s Good

Interloper is a small scale real time strategy that recently released for Linux, and it managed to capture my interest for being a bit different. The…

Massive New Planetary Annihilation Test Build Available, Also On Sale

Uber Entertainment have been busy, and their work has shown in their latest public test build. It includes lots of new AI fixes and behaviours, as…

Classic Platformers Prehistorik 1 & 2 Released On GOG For Linux

GOG have done it again folks, Prehistorik 1 & 2 which are both games from my childhood have been published on GOG and both support Linux. I've…

Dying Light: The Bozak Horde DLC Releases On May 26th

Dying Light is to gain its first big DLC with The Bozak Horde, it looks like a wave-based survival challenge, so it's not the most exciting of DLC,…

Open Source Development Environment Godot Engine 1.1 Out

After half a year of work, Godot, the most advanced open source self-contained game development environment reached version 1.1. This game engine is…

It's Friday, So Stream We Shall! Starting At 5 PM UTC!

We are once again at this particular point of the week. So let's us engage the streaming and video game playing!Watch live video from GamingOnLinux…

Desura Are In A Bit Of Trouble With Not Paying Developers

It looks like the newer owners of Desura haven't been paying developers, uh oh. It's a bit of an odd story, as it seems it has taken months for…

Neon Struct, A Political Espionage Thriller Released

Minor Key Games have released their political thriller Neon Struct: Die Augen Der Welt on Steam. The game sends you into a neon-coloured surveillance…

Alpha Trailer Published For Action Exploration Game 'Jotun'

Jotun is the game where you face off against Norse mythological creatures in epic boss battles. The game is slated for a Linux release this fall and…

Roguelike Expedition Simulation 'Curious Expedition' Released In Early Access On Steam

Curious Expedition has been available in a web alpha since November last year, has already built a large following and has now been put on Steam to…

More Initial Thoughts On Victor Vran, The RPG From The Tropico Developers

Victor Vran was released recently, and I gave it a small write up, but a major graphic bug stopped me from getting far. This was fixed incredibly…

Run 'N' Gun Metroidvania 'Greedy Guns' In Open Beta For Linux

Greedy Guns is a fast paced action platformer with exploration, ability upgrades and loads of bullets. It's available in a free and open beta on…

Time To Give Up On A Linux Version Of The Racer Gas Guzzlers Extreme

Gas Guzzlers Extreme was causing major excitement when it was planned for Linux, but sadly things didn't turn out so well. I'm a little late on…

Bloodstained: Ritual Of The Night From Koji Igarashi Plans A Same-day Linux Release

Bloodstained: Ritual of the Night is the huge Kickstarter from Castlevania: Symphony of the Night developer Koji Igarashi. I spoke to the developer…

Borderlands: The Pre-Sequel Has A Big Patch, Lots Fixed

Borderlands: The Pre-Sequel is the latest entry into the Borderlands franchise that's on Linux, and even with the studio behind it being closed, a…