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

Home automation device offers plug-in apps, computer vision

 LinuxGizmos: "Matrix" is a sensor-studded Ubuntu Snappy based home automation and surveillance hub that supports voice automation and gesture and face recognition.

Tux Machines Again Faces DDOS Attacks

 FOSSforce: The popular website Tux Machines has evidently fallen victim to a DDOS attack that made the site unavailable for part of the day on Friday.

IBM Adds Automated Language Translation Services to Bluemix Cloud

 The VAR Guy: IBM Globalization Pipeline, based on the Bluemix cloud platform, provides app translation services from English into nine other natural languages.

Raspberry Pi Zero Isn't Free - but it is Cheap $5 computer? not so fast say potential Raspberry Pi owners as vendors sell devices for more.

Linux Top 3: Oracle Linux 7.2, Sabayon 15.12 and KaOS 2015.11

LinuxPlanet: Rolling releases keep on ... rolling.

Install OpenLDAP In Ubuntu 15.10 And Debian 8

Unixmen : OpenLDAP is a free open source Light Weight Directory Access protocol developed by the OpenLDAP project.

Oracle VirtualBox And Manage It Using phpVirtualBox On Ubuntu 15.10 Headless

Unixmen: It is easy to install Oracle VirtualBox on any GUI Linux desktops, isn???t it? But, what about in a Linux Server that has no GUI?

How to set up torrent scheduling on Linux

 HowToForge: Today we will take a look on the methods that Linux users can follow in order to set up a scheduler for their torrent downloads.

Denmark's Second Largest City, Aarhus, Dropping Microsoft's Products for Open Source

softpedia: Aarhus is Denmark's second largest city, and the administration is preparing for the use of open IT standards in an effort to rid itself of the grip of proprietary software. Latest Articles

Europa Universalis IV: The Cossacks Now Available

Tags:DLC,Sandbox,Steam,StrategyThe latest expansion for the popular grand strategy game, Europa Universalis IV, is now available. Hordes get a lot of…

OpenMW 0.37 released, now with the new OSG renderer

Tags:Game Engine,Open SourceIt seems to be the season for new versions of excellent open source gaming projects. OpenMW, the open source recreation…

The most popular Linux gaming articles for November 2015, 137 in total

Tags:Article OverviewHere is a look back at the 20 most popular articles on GamingOnLinux for November 2015, an easy way to for you to keep up to…

New Linux Gamer Survey For December

Tags:SurveyPinch, punch, first of the month! As the saying goes...time for our latest monthly survey to complete! It will be open for ~2 weeks, as we…

Craft the amusement park of your dreams with Parkitect, now on Linux

Tags:Unity3D,Simulation,Sandbox,Early AccessI've been keeping an eye on Parkitect for quite some time, reading up on the development now and then as…

The Dark Mod became more graphically impressive in their last update

Tags:Open Source,Free Game,DRM Free We missed covered the last update to The Dark Mod back in February, and I'm glad someone emailed it in as its…

SkyScrappers is an amusing 2D 1-4 player competitive fighting game now on SteamOS & Linux

Tags:Steam,Platformer,Initial Thoughts,Indie Game,ActionSkyScrappers is deceptively simple looking, but I've been playing it a bit with the brand new…

A very special livestream tonight, keyboard and mouse vs Steam Controller

Tags:VideoWe interrupt your regularly scheduled broadcasting with an important announcement. Tonight at around 7:30 PM UTC myself and Samsai will…

Rocket League should be on Linux before the end of December

Tags:Steam,Sports,Coming Soon,Action A forum post from one of the Rocket League team has stated that the game will be on Linux before the end of…

The Escapists and all of the DLC now DRM free on GOG for Linux

Tags:Stealth,GOG,DRM Free,Adventure,Action GOG have now put up the Linux versions of the original The Escapists along with all the DLC, so you can…

Some thoughts on Xenonauts the XCOM inspired strategy game, now it’s native on Linux

Tags:Strategy,Steam,Initial Thoughts,Humble Store,GOG I love XCOM, you should all know this by now. It’s one of the best strategy games…

The Zotac Steam Machine ZBOX NEN SN970 impressed OC3D in their review

Tags:Steam,Review,Hardware,Editorial Some good news about the whole Steam Machine parade, OC3D did a pretty long review of the ZBOX NEN SN970 and…

Western style top-down shooter '12 is Better Than 6' released on Steam for Linux

Tags:Steam,Initial Thoughts,Adventure,Action12 is Better Than 6 was funded on Kickstarter last month and is already available as a full release on…

Wine 1.8-rc2 released, brings more stability

Tags:Open Source,WineThe Wine developers are continuing towards a stable 1.8 released, and they have released Wine 1.8-rc2. They have fixed a total…

You there, come watch the Friday Livestream at 6 PM UTC!

Tags:Site InfoAfter a long week of exams (school stuff, not medical) I'm glad I can finally sit down and relax a bit while playing video games.…