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

Linux Top 3: Kali 1.0.9, Deepin 2014.1 and Ubuntu 14.10

LinuxPlanet: Kali Linux has emerged in recent years to be one of the leading distribution for security penetration testers.

Wal Commander GitHub Edition 0.16.1 released

The purpose of this project is to create a multi-platform open source file manager (Windows, Linux, FreeBSD, OS X) mimicking the look-n-feel of Far Manager.

Clusterbit Developed the World's Smallest Datacenter

 DarkDuck: Open source platform where home enthusiasts, IT professionals, Linux technicians as well as high-end users can explore new possibilities

Magento 1.9.0.1 Released: Installing and Configuring on Debian/Ubuntu

 tecmint: Magento is a free, open-source CMS for web-commerce websites, first launched in 2008 and later acquired by eBay

RHEL 7 / CentOS 7 / Grub2 : Protect Single User Mode / Rescue / Emergency with Password

All Linux: In This Howto, We will protect Grub2 with Encrypted Password and Plain Password.

Has Linux run out of time?

 EveryDayLinuxUser: Why does it have to be Windows or Linux, why can't it be both?"

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

 GamingOnLinux: Icewind Dale: Enhanced Edition has been announced to much fanfare and it looks like it will be getting a Linux version.

Low-Spec Hardware? Try these Desktop Environments

 LinuxLinks: I have selected my pick of desktop environments that are excellent candidates for older hardware.

Who's to blame when products fail?

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

GamingOnLinux.com Latest Articles

Borderlands 2 Also Looks Like It's Coming To Linux, UPDATE: Confirmed

Remember when Randy Pitchford of Gearbox told us not to get our hopes up? Then Borderlands: The Pre-sequel was confirmed for Linux? Well he's a funny guy as Borderlands 2 is now showing signs of coming over to Linux anyway. UPDATED

A Valley Without Wind 1 & 2 Released For Linux

A Valley Without Wind 1 & 2 from Arcen Games are now available on Linux, and that folks is their entire back catalogue ported to Linux.

Project Vaulderie Is A Fan Made Remake Of Vampire The Masquerade: Bloodlines

Project Vaulderie is a fan made remake of Vampire the Masquerade: Bloodlines coming to Linux thanks to Unity3D.

Seven Dragon Saga, The Epic RPG Debut Title From Tactical Simulations Interactive

New independent video games studio formed by SSI alumni, updates “Gold Box” RPG experience with modern tech and new core gaming system

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.