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

Articles found under tag: scripting

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

DMS to DD to KML with AWK and sed

By

In a 2014 Linux Rain article I describe a fast 'points plotter' for Google Earth. First I copy a list of latitude/longitudes (lat/lons) from a spreadsheet to the clipboard, then I launch a shell script with a keyboard shortcut. The script builds a KML file from the copied list and opens the KML for…

Read Article

Grouping things with AWK

By

In this article I explain one way to group data items with AWK arrays. The code is a little mysterious but the results are impressive, especially in my second example! Case 1: Cricket stats The table 'runs' is tab-separated and lists the 86 national team cricket players who scored (or have so far…

Read Article

Building a Desktop Wikipedia Checker

By

I often look something up in Wikipedia when reading non-browser documents, like PDFs, ODTs and emails. I wanted to have a little desktop window for those look-ups - somewhere I could check Wikipedia without opening a browser and without leaving the document I'm reading. This article describes how I…

Read Article

News Elsewhere

Linuxtoday.com

Linux Kernel 3.12.45 LTS Has ARM64 and x86 Fixes, Numerous Updated Drivers

 softepedia: Linux kernel 3.12.45 LTS adds various improvements to the ARC, ARM, ARM64, x86, MIPS, SPARC, and PowerPC (PPC) hardware architectures

Linux Top 3: Korora 22, Zorin 10 and Oracle Linux 6.7

LinuxPlanet: Zorin is (yet another) Linux distribution based on Ubuntu 15.04.

Linux 4.2 rc5

Linus Torvalds: We're getting up there to the later rc's, but it's looking like 4.2 might be one of the releases needing more than the usual seven rc releases - things aren't calming down like I would wish, and we've still had some fairly annoying issues pop up.

Oracle: Docker container tech will be in the Zone on Solaris

el Reg: Larry's Unix to support cross-platform containers with unique Solaris features

LaaS (Linux as a Service) -- What you can expect when you build a Linux server in the cloud

ITWorld: Linux servers in the cloud -- cheaper and better than ever

The FSF's statement on Windows 10

Microsoft uses draconian laws to prevent anyone from popping the hood on Windows and studying the source code that underlies it.

Installing Linux on a Mac, Why Bother?

 softpedia: I mean, who pays so much money on a computer that already has a great, beautiful, powerful, stable, secure, BSD-based operating system, which after all is still UNIX, to install Linux or Windows?

CloudStats.me - Easy Server and Website Monitoring from the Cloud

 tecmint: CloudStats is a cloud based server and website monitoring platform that makes it really easy for you to monitor any server or website.

Kodi media player turns 15 with Isengard release

 LinuxGizmos: The XBMC Foundation's Team Kodi last week released version 15 of its popular, open source Kodi media player and home theater framework.

GamingOnLinux.com Latest Articles

Don't Starve: Shipwrecked Is A Brand New Single-player Expansion Coming This Fall

Need more to do in Don't Starve? It seems Klei Entertainment have your back. Don't Starve: Shipwrecked has been announced as a new single-player…

Shallow Space Looks Like The Spaceship RTS Game Linux Is Needing, Some Thoughts

It's not often I get over excited about a game, and I'm not entirely sure how this flew under my radar, but Shallow Space looks seriously good. You…

Point-And-Click Adventure 'Dropsy' Has A Release Date And An Amazing New Trailer

Dropsy is the crowdfunded point-and-click "hugventure" that looks set to either melt your heart or scar you for life. The game will be released on…

Adventure RPG 'Evoland 2' Release Date Announced, Linux Release Shortly After

Evoland developers Shiro Games recently announced the release date for the anticipated sequel, and though there's no firm release date for Linux yet,…

Virtual Programming Have Been Busy, Looks Like They Are Doing The Arma 3 Port

Thanks to the about page on Virtual Programming's official store, we have found out that they are the mystery external porter of Arma 3 that should…

Casual Clickers 'AdVenture Capitalist' And 'Time Clickers' Now On Steam For Linux

AdVenture Capitalist is a so-called "idle game" that has been available as a Flash game on Kongregate since last year, and is now available for Linux…

DiRT Showdown Confirmed For Linux By Virtual Programming, Pre-orders Open Up

DiRT Showdown is a good looking racer that is now officially confirmed for Linux, and it is available to pre-order. We didn't know who was doing the…

Codename CURE, A First Person, Co-operative Zombie Game Now On Linux

Codename CURE is a reasonable well rated first-person shooter on Steam, and it has been updated to include a Linux version. The game is free to play,…

Nuclear Throne, The Action Roguelike Has A Load Of New Content

It has been a while since I covered Nuclear Throne, and it's getting more awesome with every new build. In the latest build Nuclear Throne now has…

This Friday We Will Venture Into Mordor Live At 5 PM UTC

It's probably not going to come to you as a surprise that we are going to play Shadow Of Mordor on today's stream. So, prepare yourselves, man…

Don't Be Patchman Is The First Game On Steam To Be Linux Only

Don't Be Patchman is releasing very soon on Steam, and it's going to start by being a Linux-exclusive title. This won't stay forever though, but the…

Ziggurat Update 12 Has Been Released, Arrives On GOG

It's been a while since we last mentioned Ziggurat but the arrival of update #12 has given me a reason to remind you of this quite awesome game. The…

Middle-earth: Shadow Of Mordor Released For Linux, We Love You Feral Interactive

Feral Interactive have released an absolute whopper—Middle-earth: Shadow of Mordor is now actually available for Linux. This is a seriously…

Dying Light Reveals Upcoming Content In A New Teaser

I do love Dying Light (apart from the ending), and it looks like it will get a fresh coat of paint soon with new content. The trailer shows off some…

Retro City Rampage DX Parody Game Released For Linux, Some Thoughts On This Nostalgia Trip

Retro City Rampage is a bit of a love letter to the 80's and 90's gaming, and it just had a surprise Linux release. Retro City Rampage is a bit of a…