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

Articles found under tag: bash

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

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

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

12 Must Have Android Apps

 Datamation: A collection of must have Android apps for tasks you handle most every day.

Take Control With Open Source Hardware

Linux.com: Free and open source software are no good without open hardware.

SUSE Linux - Zypper Command Examples

 LinuxTechi: Zypper is command line interface in SuSE Linux which is used to install, update, remove software, manage repositories, perform various queries, and lot more

Modular smartwatch runs Tizen on Edison

 LinuxGizmos: A startup is prepping a modular "Blocks" watch that runs Tizen on an Atom-based Intel Edison module, and houses modular components in the watchband links.

25 Linux Performance Monitoring Tools

 Linoxide: A list of the most used and most useful tools to monitor the performance for your box.

Four Simple Words to Remember on FOSS Forums

 FOSSforce: The problem here is that this lack of civility, this absence of open-mindedness, and this departure from decent behavior scales in an enormous way in FOSS

An Everyday Linux User Review Of 4MLinux

 EveryDayLinuxUser: 4MLinux is a mini Linux distribution.

GamingOnLinux.com Latest Articles

Devil's Dare Action Game Released For Linux On Steam

Devil's Dare is a 2D zombie beat'em up, supporting up to 4 players to co-op and fight together locally. Being the spritual successor to Bitejacker, Devil's Dare carries the same theme of parodies, pitting classic game heroes against monsters straight out of 90s horror movies.

Unreal Tournament Has Public Builds Available For All Platforms Now

The new Unreal Tournament is being built out in the open and with community input as we already know, but now anyone who is logged into their forum can get access to the builds.

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.