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

Articles found under tag: scripting

I think I like backreferences (sometimes)

By

Backreferences are part of the complicated and sometimes confusing world of regular expressions. The basic idea is this: you can substitute any part of a regular expression with a backslash followed by a number, so long as you surround the part to be substituted with round brackets. The command…

Read Article

Keeping emails as text files: 2 scripts

By

Most people store and organise their personal emails as individual files (messages) in folders. Those folders might be on a webmail company's servers, or in a mail client program on the user's personal computer. In both cases the emails are probably in a special email format. I'm horribly…

Read Article

Scripting a fancy chooser for recently used files

By

I recently scripted a GUI dialog that lists my 10 most recently modified files in reverse chronological order and allows me to choose more than 1 file for opening. The dialog is launched with a keyboard shortcut and is shown here with 2 files selected: The script is in copy-and-paste form at the…

Read Article

Gnumeric: a filter-and-export script

By

My wife likes to organise and store information in Gnumeric spreadsheets. Every now and then she needs to filter her data and save the result to a new spreadsheet. Gnumeric doesn't have a simple way to do that. It has a complicated way to do it ('Advanced Filter'), but nothing so straightforward as…

Read Article

How to insert code snippets on the command line without executing them

By

You can store a code snippet in a shell alias or a function, but when you type the alias or function name in a BASH shell and press 'Enter', the shell executes (or tries to execute) the snippet. That's no good if the snippet is incomplete or needs editing. A simple workaround is to paste the…

Read Article

How to read a file N lines at a time in BASH: 3 methods

By

The file I'll be using for this demonstration is called demo and looks like this: demo is plain text with 2 tab-separated columns. The first column is sorted alphabetically, but the second column isn't sorted. What I want to find out is how many different letters are in the second column for each…

Read Article

Split a table and number the pieces: two methods

By

I worked on these bits of code to simplify a shell script of mine. You really wouldn't want to see the script's original commands here — they're way too ugly! The new commands are much prettier and work well. The problem To simplify the story, here's a comma-separated table called demo, sorted on t…

Read Article

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

News Elsewhere

Linuxtoday.com

KDE's new Linux distro: Terrible idea, or simply a huge mistake?

NetworkWorld: KDE's recently announced Linux distro, KDE Neon, seems like a questionable move that has the potential for disaster.

No Linux for Batman, XCOM 2 Arrives & More...

 FOSSforce: Seemingly out of the blue, Batman: Arkham Knight's planned Linux and OS X release has been cancelled.

Is Docker ditching Ubuntu Linux? Confusion reigns

CIO.com: Docker has long relied on Ubuntu Linux as the default host environment for Docker apps

The Influence of Debian in Linux Open Source Community

tecmint: Debian has a profound influence on much of Linux today.

SourceForge Attempts to Rebuild its Integrity

InternetNews: There was a time when SourceForge was the defacto default standard open-source code repository. That time is not now

Samsung hopes Raspberry Pi can spread Tizen OS adoption

 CIO.com: Samsung sees the popular Raspberry Pi board as a way for a potentially large number of enthusiasts to develop products with Tizen OS.

An Analysis Of The Top 10 Linux Distributions Of 2015

This guide looks at the top 10 Linux distributions of 2015 as listed on Distrowatch and discusses the suitability of them for the average Joe or the Everyday Linux User.

Unikernels, Docker, and Why You Should Care

LinuxJournal: Docker's recent acquisition of Unikernel Systems has sent pulses racing in the microservice world.

Rosa Is a Real Powerhouse

LinuxInsider: Rosa is a Russian company with a variety of Linux-based solutions.

GamingOnLinux.com Latest Articles

Firewatch: first impressions

Tags:Initial Thoughts,AdventureVideo by Xpander. Since I first found out about Firewatch, I was intrigued, so when it was released, it was an…

Tomb Raider really does look like it's coming to Linux & SteamOS

Tags:Action,Coming Soon,Steam Thanks to SteamDB and a twitter follower it really does look more likely that Tomb Raider (the 2013 version) is coming…

Cities: Skylines to get a free Theme Editor, with way more map customization options

Tags:Video,Strategy,Steam,Sandbox,City BuilderCities: Skylines looks like it's getting some really great support, and with a free update coming soon…

The talk about Vulkan at FOSDEM by Jason Ekstrand from Intel now has a video up

Tags:Vulkan,VideoFor those wanting to listen to the actual talk Jason Ekstrand from Intel did about Vulkan you can now watch the video.QuoteVulkan is…

Tempest, a good looking pirate ship combat game looks like it's coming to Linux

Tags:Steam,RPG,Early Access,Adventure,ActionTempest is a pretty good looking naval warfare game involving pirate ships, and it looks like it's coming…

BattlEye anti-cheat now supports Linux, already live in ARK: Survival Evolved

Tags:Toolkit,Survival,Steam,Editorial Everyone playing ARK: Survival Evolved on Linux can calm down now, as BattlEye now supports Linux and it's…

We Are Legion, indie strategy game with hundreds or even millions of units now on Linux

Tags:Strategy,Steam,Indie GameWe Are Legion is a small indie strategy game with no unit caps, so you could end up with millions of units going at it.…

Vulkan webinar to take place this month, hour session talking about the API and SDK

Tags:Coming Soon,Editorial,VulkanIt's getting close to the launch of Vulkan, I can feel it! Khronos are doing a webinar on February 18th at 9:00am PT…

Steam Beta adds hardware accelerated encoding for Nvidia on Linux, Steam Controller major update

Tags:Steam,Hardware,Editorial,BetaUpdate: Valve said this about the missing option to run a game with the big picture mode overlay from the normal…

Amazon launches Lumberyard, a free game engine that will support Linux and have source access

Tags:Game Engine,EditorialAmazon dropped a bit of a big one recently, they announced Lumberyard which will be a mix of code from CryEngine, Double…

ARK: Survival Evolved devs throwing money at BattlEye for Linux support, good news for Arma 3 too

Tags:Steam,EditorialSad news for players of ARK: Survival Evolved as it now uses BattlEye for online play, but the great news is the developers of…

Firewatch, a first person mystery adventure game released for Linux & SteamOS

Tags:Steam,AdventureFirewatch looks awesome, for the style, the story and the gameplay. It's available day-1 for Linux and SteamOS. Sadly, the…

GOL Cast: Killing mushrooms and spiders in Sproggiwood

Tags:Roguelike,Review,Procedural Death Labyrinth,GOL CastRoguelikes have a tendency to be really complex games with tons of depth and thick user…

Tweaking Performance in XCOM 2

Tags:Unreal Engine,Nvidia,Feral Interactive,AMDWhen Firaxis chose to use Unreal Engine to power their latest title, XCOM 2, they chose to stay on the…

Dying Light: The Following - Enhanced Edition now available for Linux, texture issues

Tags:Zombies,Steam,RPG,ActionDying Light: The Following - Enhanced Edition is a big patch and DLC now available for Dying Light. I have tested it a…