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

Articles found under tag: scripting

I think I like backreferences (sometimes)


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


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


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


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


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


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


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


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


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


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

Snapdragon SoCs to get Neural Processing Engine SDK

 hackerboards: Qualcomm announced a deep learning toolkit for implementing neural processing and other AI functions directly on devices that integrate Snapdragon 820 SoCs.

DuckDuckGo Gives $225,000 to Open Source Projects

 FOSSforce: "The search engine that doesn't track you," involves its users in the selection process as it hands out nine $25,000 awards to mostly FOSS projects.

Ubuntu Tweak Is Now Officially Dead and Buried

This is not the first time we hear that Ubuntu Tweak's development has ended

Ubuntu 16.04 - My Experience so Far and Customization

 tecmint: While I earnestly anticipated the release of Unity 8 with Xenial Xerus after watching a couple of videos that showcased its function, I was utterly disappointed that Canonical was going to further push its release - even though it was originally meant to debut with Ubuntu 14.04.

Open Source ImageMagick Security Big Puts Sites at Risk

FOSSforce: ImageMagick, an open source suite of tools for working with graphic images used by a large number of websites, has been found to contain a serious security vulnerability

USB stick brings neural computing functions to devices

hackerboards: Movidius unveiled a "Fathom" USB stick and software framework for accelerating neural networking processing on embedded and mobile devices.

Appreciating the full power of open If you want to help your organization leverage the power of open, it may be helpful if everyone understands and appreciates what makes the open source way so special.

How to plot a bar graph on Gnuplot

xmodulo: A bar graph is a plot which visualizes data values using proportional-size bars.

Vivaldi 1.1 Web Browser Receives the Latest Chromium 50 Security Updates, Fixes

Vivaldi 1.1.453.52-1 stable update is now available for all platforms Latest Articles

GOL Plays: The Culling, a look at how this battle royale survival game runs on Linux

Tags:Video,Survival,Steam,Initial Thoughts,Early Access,ActionI finally managed to get The Culling to play nicely and recorded a video of me…

STASIS, a point-and-click, sci-fi, horror adventure game has an opt-in unsupported beta, looks awesome

Tags:Steam,Point & Click,Horror,Beta,AdventureWhile I am not usually a fan of point and click adventure games, STASIS is exactly the setting that…

Turns out Blitzkrieg 3 won't come to Linux as soon as I hoped

Tags:GOG,Steam,StrategyRecently I put out an article about Blitzkrieg 3 coming to Linux. The Linux icon is prominently featured in their latest…

Games Republic is having a big sale, lots of Linux titles discounted

Tags:Game Sale Good news cash strapped gamers! Games Republic has a bunch of Linux games on sale, and some of them are a complete steal. To stop the…

GOL Podcast Episode 3: Left 4 Dead 2

Tags:PodcastWelcome to another episode of the GOL Podcast! Kallestofeles was not able to join on this recording so this episode Cheese, Kieron…

Void 21, a procedurally generated, arcade style, fast-paced runner and shooter now on Linux, it's fun

Tags:Steam,Racing,Initial Thoughts,Indie Game,ActionI had a chance to play the Linux port of Void 21 before release as the developer sent in a…

Steam makes an attempt to fix up their review system

Tags:Editorial,SteamWe all like knowing how good a game is overall and having user reviews are nice, but review bombing has become a problem. Steam…

Linux now has a proper Golf simulator! Jack Nicklaus Perfect Golf sees a day-1 release

Tags:Simulation,Sports,SteamJack Nicklaus Perfect Golf has just launched with full Linux support and it actually looks pretty good. I find golf games…

Losing my mind to stress in the Darkest Dungeon, some thoughts on this brutal Linux game

Tags:Steam,Roguelike,Review,RPG,Initial ThoughtsI was sent a key to Darkest Dungeon by the developer as I was itching to give it a go. I've been…

Anima Gate of Memories is an awesome looking third person action RPG coming to Linux (corrected)

Tags:Steam,RPG,Coming Soon,ActionI have to say I had not heard of Anima Gate of Memories until today thanks to our Discord chat. I've checked it out…

Prepare for carnage! I will be battling Matt from Feral Interactive again tomorrow at 10AM UTC/11AM BST

Tags:Livestream,Feral InteractiveI will once again be facing off against Matt from Feral Interactive tomorrow at 10AM UTC/11AM BST in the Linux…

Feral Interactive are teasing yet another Linux & Mac port on their radar

Tags:Coming Soon,Feral Interactive,SteamOS,TeaserOh boy, not long after the release of Tomb Raider and Feral Interactive have started teasing a new…

A look at Solar Division, a newer Tower Defence game on Steam

Tags:Tower Defence,Strategy,Steam,Initial Thoughts I managed to grab a key to Solar Division thanks to the publisher, so I decided to check out this…

Corpse Party, a popular 2D horror series is coming to Linux & SteamOS

Tags:Coming Soon,Horror,Steam,SteamOSI hadn't heard of Corpse Party myself until a few days ago, but it seems this popular series is getting a Linux…

Free to play Age of Conquest IV, a Risk-like wargame now fully released & available on Linux

Tags:Strategy,Steam,Indie Game,Free GameIf you're a fan of games like Risk you might want to have a look into the free to play Age of Conquest IV…