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

Fedora 21 Goes Alpha, Qubes Hits Version 2 and OpenElec 4.2

LinuxPlanet: 2014 has been a strange year for Fedora and one in which the Red Hat community distribution has yet to release a single major milestone update.

Firefox, Google Chrome Updates Fix BERserk Crypto Flaw

eWEEK: The NSS issue, identified as CVE-2014-1568, is a vulnerability that could enable a digital signature forgery attack. -

12 Open Source CRM Options

 EnterpriseAppsToday: CRM isn't just limited to products from giants like Microsoft and Salesforce.com

Oracle MySQL Gets New Features: The Storage Wars Continue

 The VAR Guy: Oracle has added new features to the enterprise edition of MySQL, the open source database storage platform.

Setting Up NTP (Network Time Protocol) Server in RHEL/CentOS 7

 tecmint: NTP is a protocol which runs over port 123 UDP at Transport Layer and allows computers to synchronize time over networks for an accurate time.

How to set up RAID 10 for high performance and fault tolerant disk I/O on Linux

xmodulo: A RAID 10 (aka RAID 1+0 or stripe of mirrors) array provides high performance and fault-tolerant disk I/O operations

OpenDaylight Helium Bootstraps SDN Security

EnterpriseNetworkingPlanet: Second major release of open-source Software Defined Networking shows maturity and stability.

GamingOnLinux.com Latest Articles

Outland A 2D Platformer Coming To Linux!

Outland is a 2D platformer with action game elements developed by Housemarque and published by Ubisoft.

Game Saves Are Messing Up Our Drives!

I am writing this in the hopes that someone who can do something about this, reads it. eg. Valve and all game devs I guess.

Cosmochoria Released For Linux In Early Access, It's Fun

Cosmochoria is a funny little game that puts you in the space-suit of little naked cartoon cosmonaut who jet packs around space.

GOL Cast: Heavy Bombardment In Cannon Brawl

I guess it's time to come back from the cruel wasteland and take a look at this simple yet fun indie strategy game that is not quite like anything I've seen before.

GOL World Tour: Linux Gaming From Germany

This instalment of the GOL World Tour visits Germany, differing from the last two in that it will focus on a country more established in the video game industry.

Tesla Breaks The World! Released For Linux

Tesla Breaks the World! A platformer that mixes puzzles, adventure and Nikola Tesla into a mixed bag of gameplay.

Neverending Nightmares Released For Linux

Neverending Nightmares is a black and white psychological horror that looks pretty awesome. It's another game to come out from being crowdfunded, woo!

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 Sunday Gaming Section, Linux Gaming From Around The Web

Here is some Sunday reading for you from other gaming sites across the internet. Not much generally happens on a Sunday and we use it as a catch-up day here, so hopefully this will be a regular article.

Baldur's Gate: Enhanced Edition Now In Beta For Linux, Finally

It took longer than we ever hoped, but Baldur's Gate: Enhanced Edition is finally in opt-in beta for Linux.

Hearthlands City Builder Has A Massive Update

We only introduced you to Hearthlands a few days ago, but it already has a whopper of an update release to make it even more interesting. Hearthlands is a game much like Settlers, Majesty and Pharaoh.

Interstellar Marines FPS Releases A Huge Update, Now Includes Co-op Play

The Interstellar Marines developers have been very busy and this new update is bloody huge. It includes the first co-op level and it's quite big.

Ibb & Obb Coming To Linux Soon, Developer Looking For Testers

It looks like Sparpweed is bringing us a shamelessly cute title, ibb & obb, a challenging cooperative platformer. However, before the penguin masses can get there hands on it the developer is looking for testers. Those interested can fill out this form. Please only apply if you actually intend on helping Sparpweed find bugs before release!

A Message From John Byrne Of AMD & A Survey

We have come across a message from John Byrne at AMD and a survey for Linux users to speak up on how they are performing.

Remember To Support Us On Patreon, Higher Level Supporters Get Free Maia Keys!

Remember that we are on Patreon for you to be able to support us monthly to keep doing what we do. Now with an added bonus! Simon Roth has donated a bunch of keys to his colony building sim Maia to give away to supporters at a certain level too.