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

Articles found under tag: scripting

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

Tips on Tables

By

Big data or small data, a lot of it comes these days as plain text arranged in rows and columns. Here are a few tips on working with tables of text, both in text editors and on the command line. CSV isn't what it seems. Text tables are often exported from databases and spreadsheets as…

Read Article

A Pivot Table In AWK

By

GNU AWK is a great tool for working with tables of data, and by using AWK arrays, you can quickly do column sums (and other calculations) based on unique values in another column (see below). Pivot tables in AWK are a bit trickier. In this article I do a slow walk through the code for a simple…

Read Article

News Elsewhere

Linuxtoday.com

KDE End of Year 2014 Fundraising

The KDE e.V. is running an end of the year fundraising campaign to ensure it can sponsor conferences and infrastructure in the following years.

6 Minesweeper Clones for Linux

 tuxarena: Here is an overview of six clones of the Minesweeper game for Linux.

Microsoft (hearts) Linux, for Azure's sake

 NetworkWorld: Microsoft now loves Linux.

What is a good command-line calculator on Linux

 xmodulo: Every modern Linux desktop distribution comes with a default GUI-based calculator app.

Mirantis Raises $100M for OpenStack Cloud Efforts

eWEEK: Armed with its latest funding round, OpenStack specialist Mirantis is positioning itself for an IPO in 2016.

Programming by Voice: Staying Productive without Harming Yourself

I have had intermittent trouble with this in the past, but limiting my computer usage at home in the evenings had always been enough to previously solve it. This time, however, was different.

Emacs 24.4 released

Version 24.4 of the Emacs text editor is now available.

Rejuvenate your Fedora desktop with Moka

FedoraMagazine: Moka started as a single Linux desktop icon theme, but over time it has gradually evolved into an entire project & brand identity that provides quality designs to people

Updated Debian 7: 7.7 released

The Debian project is pleased to announce the seventh update of its stable distribution Debian 7 (codename wheezy).

GamingOnLinux.com Latest Articles

Icewind Dale: Enhanced Edition Arrives For Linux This Month

Icewind Dale: Enhanced Edition will officially arrive on the 30th of October, and this will be a same-day Linux release too.

The Dark Descent Of Frictional Games: Part One

In the first of a two part opinion series, we will explore how the Penumbra games through a process of gradual evolution created a solid design template for later Frictional Games titles to follow.

Airships Early Access F5 Introduces Ramming, Boarding

Airships early access version 5 is out. This release introduces boarding combat, ramming prows, and new ship modules such as sails - and music!

Civilization: Beyond Earth Linux Release Date Cleared Up

Civilization: Beyond Earth is coming to Linux and the Linux release has been cleared up a bit in terms of when we can expect it.

Warlock 2: The Exiled Now On Linux

Warlock 2 is a turn-based strategy game of fantasy warfare. Rival against Great Mages, lead mighty armies into fierce battles, wield ancient magic and faith as your weapons. It is now available on Linux, and a new expansion has been released alongside it too.

Door Kickers Officially Released Today

The tactical squad shooter has been in Steam Early Access since 3rd September of last year, but was officially released today. The game is now available for Linux through retailers such as GOG, Humble Store and Steam.

Poltergeist: A Pixelated Horror Released On Steam

Poltergeist is Colombian developer Glitchy Pixel's first commercial game but they've already got several free games under their belt. This is an interesting looking puzzle game which has made its way through Steam Greenlight and is now ready for release both DRM free and on Steam.

Indie Developer Threatens Gabe Newell, Game Removed From Steam

In a case of common sense going out the Window, Mike Maulbeck developer of the game Paranautical Activity that was only just released in full on Steam has been a bit of an idiot.

Paranautical Activity FPS Is Now Out Of Beta

Paranautical Activity drew a bit of ire when they cancelled a bunch of features and decided they were calling it quits, but the game is now fully out and looks fun!

GOG Now Have Over 100 Linux Games, New Classics Include Baldur's Gate

GOG are becoming more useful for Linux gamers, as in the last week they have hit over 100 Linux games on their store!

Dragonsphere, Darklands & More Classics Added To Steam For Linux

Looks like Night Dive Studios are at it again! Some classics have been added to Steam for Linux which include Dragonsphere & Darklands.

GOL Cast: Trying To Strike A Profit In Merchants Of Kaidan

I talk a lot about Early Access, because the majority of games sent to us are on there. The games there range from awesome to awful, and Merchants of Kaidan has a bit of both.

The Wine Development Release 1.7.29 Is Now Available.

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

A Roundup Of The Last Weeks Linux Gaming

Here is a look back at the last week on GamingOnLinux, an easy way to for you to keep up to date on what has happened in the past week for Linux Gaming!

The Humble Mozilla Bundle

The Humble Mozilla Bundle includes eight games previously available on Linux and another one that hasn't been disclosed. What is different this time is that they can all be run in a web browser.