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

Articles found in "Tutorials" category:

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

Linux, HP and the avoidance of Windows

By

Having a TL;DR day? In a nutshell, I just replaced a 2011 HP Mini netbook with a 2014 HP mini-notebook. Both run Linux. Thank you, HP. The netbook I bought a 2011 HP Mini 110-3744TU in early 2012 (specs below). It came with Windows 7 'starter', which I replaced with CrunchBang Linux. The Mini is…

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

News Elsewhere

Linuxtoday.com

Android Stagefright Flaw Puts Hundreds of Millions of Users at Risk

eWEEK: A vulnerability in the Stagefright media library used in Android remains unpatched in 95 percent of devices months after first being reported by Zimperium.

Profile of an Everyday FOSS Developer

 FOSSforce: As a layman, the fact that lines of gibberish can be aligned to make a computer do the things wanted or needed is almost miraculous and resides in the shadows between magic and science.

Should you remove Adobe Flash from Linux?

 ITworld: Adobe Flash has been in the news a lot lately, and not for any positive reasons.

Plasma Phone OS, another Linux based smartphone operating system

 ItRunsOnLinux: The developers from KDE Plasma Mobile announced their latest project, named after their Linux desktop environment.

Docker Engine 1.8.0-rc1

Docker Engine 1.8.0-rc1 is available for testing!

Manjaro Linux Needs Your Help, Here's How You Can Contribute

 softpedia: The Manjaro Community is a bunch of great people, but the Manjaro Linux distribution still needs talented members

Audio Programming with Open Source Languages

 LinuxLinks: This article offers a roundup of my favorite free audio programming languages.

AMD’s GPU performance under Linux can be boosted by renaming certain executables

ExtremeTech: For most of the past decade, the idea of gaming under Linux was a contradiction in terms.

Bash/ZSH: Find out the exit codes of all piped commands

 nixcraft: A shell pipe is a way to connect the output of one program to the input of another program without any temporary file.

GamingOnLinux.com Latest Articles

The Raven - Legacy Of A Master Thief Now Available On GOG For Linux

The Raven - Legacy of a Master Thief is reasonably well rated crime adventure game, and GOG have now published it in their DRM free library. I've…

Super Dungeon Run, Guiding Hapless Heroes Through A Dungeon On Linux, Some Thoughts

Super Dungeon Run recently released on Steam for Linux in Early Access, and the gameplay sounded interesting so I gave it a run or two.About the game…

Starship Rubicon, A Space Combat Roguelike Updated With A Linux Port, Some Thoughts

Starship Rubicon instantly captured my interest with its mix of space combat, visuals from NASA, and the promise of gameplay like FTL, only you pilot…

The Open Source Project 'Xoreos' Released 0.0.2 'Aribeth'

xoreos is a FLOSS project aiming to reimplement BioWare's Aurora engine (and derivatives), covering their games starting with Neverwinter Nights and…

We Have Ten Copies Of The Fantastic Victor Vran To Give Away!

We love Victor Vran, and we love the developers Haemimont Games for bringing it to Linux. We have teamed up with the developers to throw ten keys at…

Gunscape, FPS World-building Hybrid Launches For Linux September 9th

Gunscape is a mix of first-person shooting, and world building that will be launching out of Early Access on September 9th! What has me interested is…

Submerged, A Third-person Combat-free Adventure Game May Get Linux Support

Submerged was pointed out to us in our forum, and it seems the developers are considering a Linux version, and even testing it right now. The game…

Volo Airsport, An Air Gliding Game Released For Linux, We Have Keys To Throw At You

Volo Airsport is a rather difficult game about gliding through the air, and we have some keys for you lovely Linux gamers. I've tested it out…

Rogue's Tale Dungeon Crawler Released For Linux On Steam

Fans of crawling about in the dark rejoice! Rogue's Tale an interesting looking dungeon crawler now has a Linux version available.About the game…

Cradle, A Beautiful UNiGiNE Powered Sci-fi Adventure Now On Steam For Linux, Plus Thoughts & Video

Cradle is a brand new adventure game from ‘Flying Cafe for Semianimals ‘ that’s now on Steam, I managed to grab a copy to take a…

Knights Of The Old Republic II Hotfixed For Linux, Restored Content Mod Works Now

Excellent news guys, Aspyr Media have pushed out a hotfix for Knights of the Old Republic II Linux that makes it work with the restored content mod.…

Victor Vran Says Goodbye To Early Access, Hello To Being Awesome

It's no secret that I'm a little in love with Victor Vran, and it's now out of Early Access so be sure to pick up a copy. I gave it some thoughts…

Expansion To First-Person Puzzler 'The Talos Principle', 'Road To Gehenna', Has Been Released

The long-awaited Road to Gehenna expansion to last year's first-person puzzle favorite The Talos Principle has been released on Steam, and comes with…

Hey, You! Yes, You! Come Watch The Friday Livestream At 5 PM UTC!

Another week's gone by and it's once again my time to step out of the shadows and enlighten you with my epic gaming skills live! So clear your…

Reassembly, The Awesome Spaceship Sandbox Game Adds Steam Workshop

Reassembly is easily the game that stopped me going insane when I was on nightshifts in December, and now the developer has made it even more awesome…