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

Google's surprise Nexus 6 preorders anger some Android users

 ITworld: What a shame that this preorder mess had to happen with the Nexus 6

Contributing effectively to OpenStack's Neutron project

 OpenSource.com: Find out more about Kyle and his work prior to his talk at the OpenStack Summit in Paris this year in this interview.

Rocker: Run R in Docker containers

 LinuxBSDos: Rocker is a new project that offers an alternate system for running the R statistical and programming language in Docker containers.

How to run SQL queries against Apache log files on Linux

 xmodulo: In this article, we will focus on the Apache access log files generated by Apache HTTP web server.

8 Tips to Solve Linux & Unix Systems Hard Disk Problmes Like Disk Full Or Can???t Write to the Disk

 Nixcraft: Can't write to the hard disk on a Linux or Unix-like systems?

Atom-based Ubuntu Touch tablet specs leaked

 LinuxGizmos: Specs have been leaked for a 10.1-inch Ubuntu Touch tablet called UT One that runs on an Intel Atom Z3735D SoC, with shipments expected in December.

Drupal Hack & WordPress Users

 FOSSforce: Most WordPress exploits don't take place through the core WordPress install, but through plugins, which are mostly unvetted and sometimes designed by amateur coders.

CherryTree Review: The Rich Tree Notes Application

 tuxarena: CherryTree is a notes-taking application which organizes your notes into a hierarchical tree, has support for text formatting, and is written in GTK2/Python.

LibreOffice vs. OpenOffice: Why LibreOffice Wins

 Datamation: When comparing LibreOffice with OpenOffice, there are eleven clear reasons why LibreOffice is superior.

GamingOnLinux.com Latest Articles

GODOT: The Open Source Engine Behind The Interactive Adventures Of Dog Mendonça & Pizza Boy

A few days ago I published an article about three Kickstarter projects from Argentina and what they had to say about Linux. One of those was OKAM Studio’s The Interactive Adventures of Dog Mendonça & Pizza Boy, and I briefly mentioned their open source GODOT Engine - which will be the subject of this article.

Friday Livestream At 5 PM UTC, TPS Key Give-away!

For this week's livestream we've planned to play some of the new games that have been sent to us recently and give one Borderlands: The Pre-Sequel Steam key to a lucky viewer who will be chosen by random.

Sequel To Teslagrad Funded And On Its Way

On Wednesday the developer of Teslagrad, Rain Games, secured a $150,000 grant from the Norwegian Film Institute (NFI) to continue development on the sequel to Teslagrad, World to the West.

Europa Universalis IV: Art Of War, Biggest Expansion To EU IV Yet, Released

Art of War, the newest expansion to the popular Europa Universalis IV has been released. There's a lot of content to go around this time, prominently including an overhauled reformation mechanic that promises to spice up the religious wars in Europe.

Transistor Available On Linux Now

Transistor, a game made by the developers of the well-received Bastion, is finally available on Linux.

Win A Copy Of Borderlands: The Pre-Sequel

Surprise! Hello everyone it's been a while since I wrote anything here, so how about a chance to win some Borderlands: The Pre-Sequel keys?

SteamOS & Steam's Big Picture Mode Now Have Better Filter Options

One of the annoyances that may come with people using SteamOS is buying games from the store they cannot use a game-pad controller with, and Valve are taking steps to improve this.

The Last Dogma Is Now On Greenlight, Offering Linux Version Exclusively For SteamOS

The Last Dogma is a dark comedy adventure set in the year 1999 of an alternate reality world, where US actively campaigns for world domination, UK is ruled by the dictator from Iran and Yugoslavia is being invaded by several countries.

Animal Gods Coming To Linux, Now On Kickstarter

Animal Gods is top-down action adventure game now on Kickstarter inspired by classics from the 90's brought to the 21st century with full HD, dynamic lighting and high-res textures.

GOL Cast: Disorienting Jumps In DeadCore

DeadCore popped up on Steam a little over a week ago with neat trailers showing interesting, fast-paced gameplay. How well does DeadCore work in the practice? We are here to find out.

Aspyr Media Plans More Linux Games In The Next 6 Months UPDATED

Aspyr Media are starting to be fan favourites with their open communication. They can't give full details of course, but they have given us hints about more games coming to Linux.

Humble Indie Bundle 13 - Hits A Milestone As 100 Linux Ports Reached

The newest Humble Bundle is live and this time around features quite a few Linux débuts. Currently there's a total of 8 games in the bundle with more to come.

Forward To The Sky, A Fantasy Platformer Coming To Linux

This weekend I decided to do what I haven't done in a long time.... explore Steam Greenlight! One game that caught my attention more than the others was Forward to the Sky.

GOG Announces 20+ LucasArts Classics To Release On The Digital Platform

The DRM free publisher has entered into a partnership with ©Disney to add 20+ classic titles from the back catalogue of now defunct publisher LucasArts Entertainment Company. The first batch of six games were added today. Two of which are available for Linux.

The Funding Crowd Isn't Going Anywhere Either... If You Don't Let It

The Funding Crowd Needs You! New volunteers are required to keep this column going as the current team just can't.