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

Articles found under tag: scripting

Transposing rows and columns: 3 methods

By

Swapping the rows and columns in a table on the command line would seem to be a fairly easy thing to do. For example, with this tab-separated table (called 'tabbed') as input: get this tab-separated table ('swapped') as output: Datamash Transposing rows and columns is indeed easy if you have the…

Read Article

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

News Elsewhere

Linuxtoday.com

Announcing Rust 1.9

Rust is a systems programming language focused on safety, speed, and concurrency.

Google beats Oracle—Android makes “fair use” of Java APIs

ars technica: Oracle has spent many millions trying to get a chunk of Android, to no avail.

PHP 7.0.7 Released Fixing 28 Bugs

InternetNews:  At least one of the issues could have security impact

How to detect IP address conflicts in Linux

 xmodulo: IP addresses (IPv4) are a scarce resource that is shared by different users and devices.

Open source is in our DNA

 NetworkWorld: open-source is literally science

SteamOS 2.80 Beta Brings an AMD GPU PRO Driver with Vulkan and VDPAU Support

 softpedia: The biggest new feature introduced in today's SteamOS 2.80 Brewmaster Beta update is a new AMD GPU PRO graphics driver

Linux Amazon Music Woes

 Freedom Penguin: Linux and Amazon music troubles

GamingOnLinux.com Latest Articles

Rocket League is still coming to Linux, but there is no release date

Tags:Steam,Sports,EditorialRocket League is still coming to Linux a developer has confirmed on reddit, but they have no idea when by the looks of it.…

Atari Vault, the 100 game collection officially launches on Linux & SteamOS

Tags:Steam,ArcadeTwo months after the initial Windows release, the Atari Vault game collection is now officially available on Linux & SteamOS.…

Check out these gameplay videos from Civilization VI, which is coming to Linux

Tags:Coming Soon,Steam,StrategyCivilization VI was announced recently and it was officially confirmed that it's going to come to Linux, we now have…

F1 2015 released for Linux by Feral Interactive, Nvidia only for now, port report, video and more included

Tags:Video,Steam,Review,Racing,Initial Thoughts,Feral InteractiveWelcome to Formula 1! Time to grab your helmets racing fans, as F1 2015 has…

Tomb Raider gets its first Linux & SteamOS patch, performance improved in heavy areas

Tags:Steam,Initial Thoughts,Feral InteractiveThe Tomb Raider port from Feral Interactive was rough in places at release, so hopefully this new patch…

SteamOS 2.80 beta released, brings the AMD GPU PRO driver for Vulkan and VDPAU support

Tags:SteamOS,Steam,Beta,AMDProbably one of the more interesting releases of SteamOS recently. SteamOS 2.80 is now in beta which brings with it some…

According to Deep Silver the new editions of Dead Island are not coming to Linux

Tags:Zombies,Steam,EditorialStrange and sad news, Deep Silver responded to me on twitter to let me know that Dead Island Riptide Definitive Edition…

Zero Point Software update us on their search for a publisher for Interstellar Marines, requiring 1.7 million dollars

Tags:Steam,FPS,Editorial,Early Access,ActionInterstellar Marines has been in development for a long time and their cash is running dry. They recently…

Counter-Strike: Global Offensive now 64bit on Linux

Tags:Action,FPS,SteamCounter-Strike: Global Offensive to be 64bit, so if you're still stuck in the past it's seriously time to upgrade. Valve say…

The handheld Linux computer Pyra is available for pre-order

Tags:HardwarePyra the successor to the OpenPandora device is now available to pre-order and it certainly sounds interesting. I've never really looked…

So I played… Automata Empire

Tags:Video,Strategy,Review,Itch.io,Indie GameSome weeks back a game by the name of Automata Empire was recommended to me and I happened to find it on…

Harpoons at the ready as Blacksea Odyssey is powering out of Early Access on June 1st with Linux support

Tags:Steam,Roguelike,Indie Game,Arcade,ActionFancy taking on some insanely big space creatures with harpoons? Blacksea Odyssey will scratch that itch…

The Linux version of the Unity3D editor has been updated

Tags:Game Engine,Toolkit,Unity3DThe Unity3D editor for Linux has been updated once again to bring it up to speed with the Windows version. The last…

The Way, a puzzle platformer inspired by classic titles like Another World and Flashback now on Linux

Tags:Steam,Puzzle,Platformer,GOGBoth Another World and Flashback are games I played a lot of when I was younger and The Way is a great looking homage…

Watch Feral Interactive play F1 2015 live on Twitch tonight at 5PM UTC

Tags:Video,Preview,Livestream,Feral InteractiveWant to see some F1 2015 on Linux before release? Feral Interactive are doing a livestream today at…