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

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.

Replace UFW with FirewallD on Ubuntu 14.10

 LinuxBSDos: This tutorial shows how to remove (uninstall) UFW and install FirewallD in its place on Ubuntu 14.10 desktop, the latest edition of the Ubuntu Desktop.

Automated Installations of Multiple RHEL/CentOS 7 Distributions using PXE Server and Kickstart Files

 tecmint: This article is focused on how you can perform Automatic Installations of RHEL/CentOS 7, without the need for user intervention, on headless machines using a Kickstart file read from a local FTP server.

Things I Do in Windows When I Forget It's Not Linux

 softpedia: An interesting thing happens when you're in Windows and you try to do something that you think is normal, but that feature doesn't exist.

Suse enterprise Linux can take your system back in time

 Network World: The newest enterprise edition of the Suse Linux distribution allows administrators to go back in time, for instance, to immediately before they made that fatal system-crippling mistake.

How To Use Vagrant To Create Small Virtual Test Lab on a Linux / OS X / MS-Windows

 nixcraft: Vagrant is a multi-platform command line tool for creating lightweight, reproducible and portable virtual environments.

Facebook Builds Open-Source Osquery for Security Insight

eWEEK: The tool is designed to expose what's going on inside an OS. Osquery, Facebook's new open-source framework, could give enterprises new security insight.

Why Microsoft loves Linux

 ZDnet: Bill Gates and Steve Ballmer may have hated Linux, but new Microsoft CEO Satya Nadella says Microsoft loves Linux.

GamingOnLinux.com Latest Articles

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.

Oddworld: New 'n' Tasty Will Release On Linux Soon

Oddworld: New 'n' Tasty is the remake of Oddworld: Abe's Oddysee and the Linux release isn't far off.

Civilization: Beyond Earth Mac And Linux Dev Update

Aspyr Media has detailed in a new blog post their progress on the Mac & Linux Civilization: Beyond Earth ports. The good news is that it's fully playable, but performance is an issue due to the new game using Directx 11 as opposed to their previous port using Directx 9.

Volgarr The Viking In Open Beta For Linux

After collecting more than twice of their goal on Kickstarter in 2012, the retro action platformer was released for Windows in September last year but is now available for Linux for the first time in an open beta on Steam.