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

Articles found under tag: scripting

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

Top 10! Fun On The Command Line

By

If you just love making 'top 10'-type lists but are a little embarrassed to say so, tell people you're passionate about data exploration. To impress them even more, explain that you do your data exploration on the command line. But don't ruin the impression by telling them how easy that is! In this…

Read Article

ODT to TXT, but keep the line numbering

By

The title explains what this article is about. If you save an .odt file as text, or copy/paste the contents as a text file, or run odt2txt or the unoconv utility, you lose the apparent line structure of the original, and with it the line numbering. But there is a way... Losing apparent line…

Read Article

Scripting a 4-Color Multiple Grepper

By

I wrote the shell script described here ('grep4') to find up to four items at the same time in my data tables, which are big text files with one record per line. The script gives each searched-for item its own color on the terminal screen. It lets me know in advance how many 'hits' there are, so…

Read Article

Tips on Tables

By

Big data or small data, a lot of it comes these days as plain text arranged in rows and columns. Here are a few tips on working with tables of text, both in text editors and on the command line. CSV isn't what it seems. Text tables are often exported from databases and spreadsheets as…

Read Article

A Pivot Table In AWK

By

GNU AWK is a great tool for working with tables of data, and by using AWK arrays, you can quickly do column sums (and other calculations) based on unique values in another column (see below). Pivot tables in AWK are a bit trickier. In this article I do a slow walk through the code for a simple…

Read Article

Why I (sometimes) love regular expressions

By

Command line wizards are forever encouraging the rest of us to learn regular expressions (regex). We're told regex is elegant, powerful and incredibly useful. The downside is that regex can be seriously fiddly. One fly-spot out of place, and the code fails. For this reason I only use 'non-simple'…

Read Article

News Elsewhere

Linuxtoday.com

Who's to blame when products fail?

Linux Magazine: "maddog" takes exception to attempts to blame Open Source for some recent product failures.

OpenStack Manila project Approved for Incubation

InternetNews: "Stated simply, the goal of the Manila project is to do for shared filesystem storage what Cinder has done for blocks storage"

Splitting a File Elegantly

LinuxRain: Is there a simpler way to split the file by last name using AWK, without sorting?

Is VMware OpenStack an embrace of open source — or an attempt to extinguish it?

GigaOM:  It doesn’t really matter. VMware’s move shows that, despite its problems, OpenStack is driving private cloud discussion in enterprise IT shops.

The Fastest NVIDIA GPUs For Open-Source Nouveau With Steam Linux Gaming

Phoronix: The tested NVIDIA hardware included both old and new graphics processors

7 Things You Can Do With The Xposed Framework on a Rooted Android Phone or Tablet

HowToGeek: The Xposed Framework is a way to make system-level changes to your Android operating system without installing a custom ROM.

Mozilla Improving Security Processes After Exposing Developer Data

eWEEK: Users of the Mozilla Developer Network and Bugzilla testing system are advised to update their passwords after a pair of data disclosures were reported in August.

UberWriter Text Editor Review - A Writer's Dream Come True

 softpedia: UberWriter is described by its developer as a simple markdown editor, but it's so much more than that

Tech Comics: The Pandora Hotline

 Datamation: Aren't some of the songs we listen to on Pandora just a little bit embarrassing?

GamingOnLinux.com Latest Articles

The Witcher 2 Improves With A New Round Of Beta

Virtual Programming are again delivering on their promises of better performance. The Witcher 2 has kicked off another round of beta versions and it comes with AMD related fixes too.

Firewatch, A First Person Mystery Game Finally Reveals Itself In A Trailer

Firewatch is an incredibly stylish looking first person mystery game from new developer Campo Santo Productions.

Mojang Releases Roadmap For Scrolls, Still No Sign Of Linux

Scrolls is a bit of a sad song for Linux and for me especially as I purchased it on their public promise of a Linux version, and with their release of a roadmap Linux is nowhere in sight.

Minecraft 1.8 Released, Includes Masses Of Changes

Minecraft 1.8 has officially just been released and with it comes maaaaany changes you need to be aware of.

Ryan Icculus Gordon On The Linux Action Show

Ryan Icculus Gordon has just recently been on a guest on the excellent Linux Action Show to talk about Linux gaming. Ryan Icculus Gordon is the name behind a number of big ports.

Empire: Total War Looks Close To A Linux Version, Pokes Fun At Linux Gamers

We already knew that Total War: ROME II would come to Linux, but now it looks like the original Empire: Total War will come to Linux too and maybe sooner than the sequel.

Steampunk Train Shooter Meets Tower Defense: Kickstarter & Playable Demo

If you're looking for steampunk game that combines elements of rail shooters and tower defense there's a kickstarter launching Sept 2 with your name on it! In Tumbleweed Express players must expertly defend their train while constantly battling against an endless barrage of militarized bandits, outlaws, and opposing organizations.

GOL Cast: Fighting A Desperate Battle In AI War

An RTS fan? Well, you might like what this complex strategy game about a galactic war against an over-powered AI brings to the table. Let's see what AI War is all about!

Metro: Last Light Redux Showing Signs Of Getting The Linux Version Out

Metro: Last Light Redux has been updated on the SteamDB to include some Linux information, so it seems the developers are working on getting it sorted.

NeonXSZ Cyberspace FPS Now On Steam For Linux

For those of you who stick to Steam this will be good news. NeonXSZ is an awesome cyberspace FPS with solid gameplay and it looks good too.

Ambient Puzzler Hexcells Infinite Available On Linux Today

The third and final instalment in the popular puzzle game series launches today, DRM free and on Steam.

The Most Popular Linux Gaming Articles For August 2014

Here is a look back at the most popular articles on GamingOnLinux for August 2014, an easy way to for you to keep up to date on what has happened in the past month for Linux Gaming!

Trine Enchanted Edition May Have A Linux Beta

We know that the Trine Enchanted Edition major update to Trine will come to Linux, but we don't know when yet sadly. The good news is they may do a beta for the Linux version.

Icewind Dale: Enhanced Edition For Linux & Baldur's Gate: Enhanced Edition Linux Update

Icewind Dale: Enhanced Edition has been announced to much fanfare and it looks like it will be getting a Linux version. Well sort of, maybe, we aren't quite sure. Also there's another small bit of hope for the Baldur's Gate EE Linux version.

Sid Meier's Civilization: Beyond Earth Has A Strategy Packed New Trailer

Sid Meier's Civilization: Beyond Earth is going to rock the strategy world when it gets released. We already know the Linux release will be delayed, so for now here's a new awesome trailer.