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

Articles found under tag: scripting

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

The header line: how to add, delete and ignore it

By

In a plain-text table, the first or header line usually contains the names of the fields. In this article I've pulled together a variety of ways to add and delete a header, and also how to do things with the rest of the table while leaving the header intact as the first line in the file. Add a…

Read Article

Joining Tables on the Command-Line

By

This article compares 3 different ways to join tables on a common field. All 3 work OK on small tables, but there's a big difference in speed when the tables to be joined are large, as shown below. Table joining isn't something you need to do if you store data in a simple, flat-file database like a…

Read Article

Splitting a File Elegantly

By

In a previous Linux Rain article I compared different ways to delete blank lines, and showed that the AWK way was the simplest and most thorough. Here I show how to split a text file into multiple text files using a surprisingly simple AWK command. Background In 2013 I published an article in Free…

Read Article

Tips on getting (and suggesting, and editing) user input

By

In a previous Linux Rain article I explained how to use the YAD dialog to do multiple-item data entry in a GUI. Here I show one way to allow users to check and edit what they've entered in YAD. I also explain how to offer default, editable inputs in terminal-based data entry, and how to color the…

Read Article

How to get nowhere in particular

By

In this tutorial I explain one way to generate a random geographical location, using simple command-line tricks. Latitude and longitude: decimal degrees Latitude runs from 0 to 90 degrees from the Equator to the North Pole, and 0 to 90 degrees from the Equator to the South Pole. Longitude in…

Read Article

Top 10! Fun On The Command Line

By

If you just love making 'top 10'-type lists but are a little embarrassed to say so, tell people you're passionate about data exploration. To impress them even more, explain that you do your data exploration on the command line. But don't ruin the impression by telling them how easy that is! In this…

Read Article

ODT to TXT, but keep the line numbering

By

The title explains what this article is about. If you save an .odt file as text, or copy/paste the contents as a text file, or run odt2txt or the unoconv utility, you lose the apparent line structure of the original, and with it the line numbering. But there is a way... Losing apparent line…

Read Article

Scripting a 4-Color Multiple Grepper

By

I wrote the shell script described here ('grep4') to find up to four items at the same time in my data tables, which are big text files with one record per line. The script gives each searched-for item its own color on the terminal screen. It lets me know in advance how many 'hits' there are, so…

Read Article

News Elsewhere

Linuxtoday.com

Zenwalk Linux - A Walk on the Quirky Side

LinuxInsider: Zenwalk Linux is a very usable yet uncommon Linux OS. It is more than a single distribution.

Your anonymous code contributions probably aren't: boffins

el Reg: Coders are creatures of easily-identifiable habit

Google just made it easier to run Linux on your Chromebook

PCworld: If Chromebooks are the consumer Linux desktop we were all waiting for, it’s great to see Google making it easier to turn a cheap consumer Chromebook into a power-user’s Linux desktop.

The most obvious user for Linux isn't who you think

TechRepublic: The ideal candidate is the average user.

Linux-enabled sit/stand smart desk nudges you into action

 LinuxGizmos: A Linux-based desk with WiFi, Bluetooth, and a 5-inch touchscreen automatically adjusts between sitting and standing, and tells you when it's time to move.

Tech Comics: Delete This File?

 Datamation: Does your computer give you enough choices when it's time to delete a file?

How the New York Times uses open source

 Enterprisers Project: Marc Frons, senior vice president and chief information officer of the New York Times, discusses how The Times actively contributes to open source communities.

A Shell Primer: Master Your Linux, OS X, Unix Shell Environment

 Nixcraft: On a Linux or Unix-like systems each user and process runs in a specific environment.

Linus Torvalds to Patch the Kernel for a Witcher 2 Problem

 softpedia: Linus Torvalds is not known to interfere with other projects than the Linux kernel and it must be something really special to get him involved

GamingOnLinux.com Latest Articles

Star Traders: 4X Empires Strategy Game Now On Linux

Star Traders: 4X Empires has just been released for Linux, so fans of 4X strategy games might want to take a look out our new release.

Dying Light Is Now Confirmed For Linux, Bring It On Techland

Dying Light is now confirmed for Linux thanks to the announcement from the developers on the Steam store itself. The Linux icons show up on the store pages, and the game even has a steam coming soon banner on the home-page. Time to get seriously excited.

Fahrenheit: Indigo Prophecy Remastered Pops Up On Amazon, Has A Tux On The Cover

Something quite curious has appeared on Amazon today. A remaster of a cult game Indigo Prophecy, or Fahrenheit here in Europe, has been added onto the store. And now for the really good bit: the cover has an Aspyr logo and a very familiar penguin.

Linux Kernel Bug Being Fixed Thanks To Linus Torvalds & The Witcher 2

We weren't going to cover this originally, but after thinking on it this is actually great. Thanks to the Linux version of The Witcher 2, a Linux Kernel bug was found as is being fixed.

The Wine Development Release 1.7.35 Is Now Available

Wine development team was able to produce a new experimental release today. 1.7.35 bringing many new features and as many as 56 bugfixes.

Never Fear, The Friday Livestream Is Here! (At 6 PM UTC) [VOD Added]

We've had another busy week of busily doing busy stuff, so it's time to lean back and enjoy the weekend. And what is the best way to enjoy weekends? Playing Linux games of course! But if you have the time, you might also enjoy watching me play Linux games and talk about things. Anyway, you are once again welcome to the weekly livestream!

Reassembly, A Spaceship Building And Combat Game Grows Up With A Big Update

Reassembly is easily one of our favourite games for a fantastic mix of good music, an extremely simple spaceship editor and fun combat. The developer has released a big update, and the game has grown rather a lot in a short space of time.

Dying Light From Techland Has A Little Hint About Linux Support

Well this was a surprised! Dying Light has hints that it may come to Linux thanks to information from the awesome SteamDB. UPDATED: Linux icon now on the store!

GOL Cast: Aggressively Expanding Sweden In Empire: Total War

Feel like going back to the old times of gun powder and armies standing in straight lines on open fields? Well, here's a good candidate. Let's make our dreams of glorious empires true and see how this game works.

Planetary Annihilation Teases New Units & Saved Game Support

Planetary Annihilation my favourite crashy strategy game has teased a big update to come soon. Not only does it include unit balance changes and new units, but the long promised saved game support will come too.

Storm United, Online FPS Shows First Real Game-play Video, First Alpha Due Soon

Storm United is a beautiful FPS game running on the Unreal Engine that will have full Linux support, and they have shown off their first real game-play video.

CaesarIA Now On Steam, A Re-make Of Caesar III, But It Might Not Be Legal

CaesarIA is now on steam! The Caesar III re-make was just released in early access and has been in Steam Greenlight since April 16, 2014. The problem is that it might not be legal.

Deity Quest, A Pokemon-inspired RPG For Linux, On Steam & My Thoughts

I have often longed for a more adult orientated form of Pokemon, and to find the developer of Deity Quest reach out to me to take a look I was rather eager to get going.

Fancy Playing A Shoot-em-up As A Crow With Powerups? Well 'A Quiver Of Crows' Will Let You

I have to admit whenever I see "twin stick shooter" I get a little bored, as I played that genre to death over the years, but A Quiver of Crows is interesting enough to make me think again.

Invisible, Inc. A Tactical Stealth Game From Klei Entertainment Linux Support Due Soon

Invisible, Inc. is the new game from Klei Entertainment (think Don't Starve) that has been in early access for a while without Linux support. Today they released an update with news of our much anticipated Linux support! UPDATED