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

How to install Arch Linux the easy way with Evo/Lution

 xmodulo: The one who ventures into an install of Arch Linux and has only experienced installing Linux with Ubuntu or Mint is in for a steep learning curve.

Red Hat Acquires FeedHenry for $82 Million to Advance Mobile Development

Datamation: Red Hat jumps into the mobile development sector with a key acquisition.

TrueCrypt Getting a New Life

eSecurityPlanet: TrueCrypt will stay alive, thanks to devotees who are forking the encryption program's code. 'Cleaned up' code will get a new name, CipherShed, and a different open source license.

Soon you will be able to access ownCloud from Chrome OS

the mukt: The fact is you can already access ownCloud on your Chromebook via the web interface, but it’s not very useful

Rackspace Says It's Not for Sale, Despite Obstacles

eWEEK: Rackspace names a new CEO, as the OpenStack cloud founder chooses not to sell after evaluating its strategic options.

Sorry, Windows 9 Fans, This Is How Multiple Desktops Should Work

 softpedia: The Windows 9 OS will finally get a very coveted feature, multiple desktops, but the Microsoft developers are still pretty far away from what you can get on Linux.

OpenMediaVault 1.0 review

 LinuxBSDos: OpenMediaVault 1.0 is based on Debian 7

FOSS Around the World: Latin America

 FOSSforce: "FOSS is not something most of the people know about," he said.

Running KDE Plasma 5 on Kubuntu 14.04, Kubuntu 14.10 and Linux Mint 17 KDE

 UbuntuPortal: KDE Plasma 5 is a completely new desktop experience for KDE users.

GamingOnLinux.com Latest Articles

Torment: Tides Of Numenera New Video, Looks Absolutely Stunning

Torment: Tides of Numenera is another game heading to Linux from inXile entertainment that was funded on Kickstarter. They have released a new video to show off just how amazing it looks.

DoubleFine Ceasing Spacebase DF-9 Development, Releasing Code For Modders

DoubleFine has announced it will cease development on Spacebase DF-9 and release their Lua code for modders to carry the dream on.

Arena Vex, An Online Multiplayer Knockout Arena Is Out For Linux

Arena Vex, a remake of the popular Warcraft 3 map Warlock, has been officially released for Linux. Arena Vex is an online multiplayer knock-out arena with loads of intense action and tactical gameplay that’s great for LAN parties and competitive play.

Techland's Chrome Engine 6 Officially Supports Linux, Hellraid & Dying Light Possible For Linux

This may not be news for our readers who have been around for a while, but Techland's Chrome Engine 6 actually supports Linux.

GOL Cast: Furiously Counterattacking In Ground Pounders

There aren't too many collectible card games on Linux, but here's something a bit like that. Though it comes with plenty of traditional turn-based strategy along with the cards. Let's see what's in it!

Saibot Releases Doorways: The Underworld

Argentine game developer Saibot Studios has released the the third chapter of Doorways on Steam and Desura, with Linux support from the go. The game is a continuation of Doorways 1 & 2, which is also available for Linux.

Linux Games To Come In 2014, A Look At What Is Ahead

There's a lot to look forward to this year, so here's a quick reminder so that you don't get swallowed up!

The Dead Island Linux Port Is Not Being Done By The Orginal Developers

We recently had a chance to speak to Techland the original developers of the Dead Island series, but they have confirmed they are no longer involved with it.

Tropico 5 For Linux Looks Set To Release This Friday!

On the official Tropico Facebook page the developers sent word out that the Linux (and Mac) versions are still on time for release on Friday 19th September!

Hammerwatch Hack & Slash Action Game Has A Free Expansion

Hammerwatch is a pretty good-looking hack & slash dungeon crawling action game that has just been updated to include a free expansion!

The Video For Valve's SteamOS Talk From DebConf14 Is Up

Valve went to the DebConf this year and did a talk about SteamOS, and the video is finally up for viewing!

Valve Are Tracking SteamOS Issues With AMD Graphics

Valve have put up a post on their SteamOS community to keep track of AMD graphics issues with SteamOS. We hope this will push AMD some more to better their proprietary Linux drivers.

Skullgirls Developers Detail What's Going On With The Linux Port

The Skullgirls developers have finally written up an official blog post on the status of the Linux port.

Shovel Knight Will Have Its Linux Version Soon

Backers of Shovel Knight or gamers interested it in that didn't back it on Kickstarter will be happy to know that Shovel Knight will release the Linux version "soon".

Image & Form Announces SteamWorld Heist

Image & Form who created SteamWorld Dig, a highly rated indie game have just announced SteamWorld Heist!