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

Articles found under tag: scripting

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

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

News Elsewhere

Linuxtoday.com

30 Years On, HURD Lives: GNU Updates Open Source Unix Kernel

The VAR Guy: The latest version of GNU HURD is out.

How Forge.mil changed the way the US DoD develops software

 OpenSource.com: While government software developers collaborate well today, 2009 was a different story.

What are good open-source log monitoring tools on Linux

 xmodulo: In an operating system, logs are all about keeping track of events, be it critical system errors, resource usage warnings, transaction history, application status, or user activities.

3 best practices for bootstrapping an open source business

 Opensource.com: Go to the networking and speaking events of any local startup community in America and you'll quickly discover a dominant theme: investment.

At Birth, Open Source Was About Saving Money, Not Sharing Code

 The VAR Guy: Linus Torvalds and the early supporters of the Linux project were interested primarily in a free-as-in-beer operating system, not ensuring that source code would be freely accessible.

VMware Launches Lightwave and Photon for Linux Containers

ServerWatch: VMware is expanding its embrace of Linux containers in a big way today with the launch of a pair of efforts that aim to enable a new era of cloud-native applications.

How to Install and Configure NTP (Network Time Protocol) Server/Client in Debian Linux

 tecmint: Time synchronization is important for many reasons ranging from application time stamps to security to proper log entries.

Encryptr Zero-Knowledge System Based Password Manager For Linux

 LinuxandUbuntu: Encryptr is free and Open-Source password manager that is based on a very secure 'Zero-Knowledge Crypton Framework'.

FOSS Is Everywhere, Dell's New Linux Try & More...

 FOSSforce: Seriously, Dell? Would it absolutely, positively kill you to provide a bunch of Ubuntu-laden XPS 13s to a huge vendor like Best Buy

GamingOnLinux.com Latest Articles

Zenzizenzic, An Awesome Bullet-hell Shooter On Linux, With Some Thoughts

Zenzizenzic has recently release for Linux and I hadn't played a bullet-hell games for a while, so I took a look and it turns out to be quite good.…

GOL Cast: Exploring The Flying City In Bioshock Infinite

You might have seen our port report of Bioshock Infinite and might already know that, against all expectations, it performs really nicely. But let's…

The Banner Saga Linux Port Report, It's A Good One

Now that The Banner Saga has been out for a few days I’ve taken a look at it. It’s a newly ported game, so if you haven’t picked it…

Chroma Squad, A Power Rangers Inspired Tactical RPG Releasing For Linux This April

Chroma Squad is a game I've been following for a while, and the release is nearly upon us. Will you be grabbing a copy? It is due for release on the…

Action Platformer Slinki Released On Steam, A Demo Is Available

Slinki is an action platformer, developed by Titan Forged Games, where you control a rabbit with a prosthetic arm. The game has been available for…

Sales Statistics For Linux Games From Different Developers, Part 4

You would hopefully have seen my previous articles talking to multiple developers about their Linux sales, so to begin a new year we are talking to a…

Fallen: A2P Protocol, A Post-apocalyptic Turn Based Strategy Released For Linux, Some Thoughts

Fallen: A2P Protocol is a pretty good looking turn based strategy currently in Early Access, and I have been graced with a key to take a look at…

Kart Racer 'Coffin Dodgers' Adds Linux Support To Early Access

The early access racer Coffin Dodgers has been updated and now has Linux support. As far as premises go, this one is one of the more original ones…

Freedom Planet Officially Released On Linux

The colourful action platformer Freedom Planet now has been officially launched for Linux.Offical AboutSteamFight your way across the celestial…

Storm United, A Beautiful New FPS Now In Early Access, We Have Keys

Storm United is a new first person shooter built in Unreal Engine that looks absolutely stunning. The developers have just released the game into…

The Wine Development Release 1.7.41 Is Now Available

Wine development team was able to produce a new experimental release today. 1.7.41 bringing many new features and as many as 41 bugfixes. The few…

The Weekly Livestream Is Here At 5.30 PM!

My calender says it's Friday so it's time for The Weekly Livestream! Join in on the fun as I play games live for your entertainment!Watch live video…

Gratuitous Space Battles 2 Released For Linux, Some Thoughts Included

It’s a great time to be a fan of space combat games, and the latest release for us is Gratuitous Space Battles 2 which I’ve taken a look…

The Banner Saga Is Finally Available For Linux

The Banner Saga has been highly sought after from Linux users, and the day has finally come. The new update also adds controller…

The Excellent Crypt Of The NecroDancer Officially Launches This Month

Crypt of the NecroDancer is really awesome, and it's going to exit early access this month. If you love your music it's a fantastic game. I've pumped…