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

An open source mapping primer

 opensource.com:  Gordon Haff offers an overview of tools you can use to visualize open data sets and map the world around you.

Install Elastix Unified Communication Server

 Unixmen: Elastix is an unified communications server software that brings together IP PBX, email, IM, faxing and collaboration functionality

Django Models and Migrations

LinuxJournal: When a request comes in to a Django application, the application's URL patterns determine which view method will be invoked.

Zorin OS, consider me a Linux fan for life

 DarkDuck: While I come across the "old guard" wanting to cling to XP for dear life as it drifts into the sunset and becomes even more prone to virus, malware and spyware attacks, consider me a Linux fan for life.

GitHub Raises $250M Series B Round To Take Risks

TechCrunch: The company, which was founded back in 2008, has now taken a total of $350 million in outside funding.

Teach coding with games: a review of Codewars and CodeCombat

 opensource.com: Teacher Horst Jens tests and reviews to learn-to-code sites: CodeCombat and Codewars.

3 Twitter Clients For Linux That You Don't Want To Miss

 LinuxAndUbuntu: There are numerous of twitter clients for Linux that notify on the desktop whenever something happens on twitter.

Open Source Is Going Even More Open—Because It Has To

Wired: Google often gives its software away for free. It has long believed in open source software.

OpenDaylight dawn: Open-source software defined networking goes into production

ZDnet: OpenDaylight, the open-source, software-defined network, is moving from the lab into full-scale production.

GamingOnLinux.com Latest Articles

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…

Q.U.B.E: Director's Cut, A Brain-twisting First Person Puzzler Is Being Ported To Linux

Q.U.B.E: Director's Cut is an excellent looking first person puzzle game, and the developer has confirmed Linux & Mac ports are currently in…

Retro-Pixel Castles, A Hybrid Godlike Village Simulator Thoughts & Key Giveaway

I’ve been keeping an eye on Retro-Pixel Castles for a while, and I decided to let it mature a bit. I’ve now given it some thoughts, and I…