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

Articles found under tag: tutorial

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

Why I (sometimes) love regular expressions

By

Command line wizards are forever encouraging the rest of us to learn regular expressions (regex). We're told regex is elegant, powerful and incredibly useful. The downside is that regex can be seriously fiddly. One fly-spot out of place, and the code fails. For this reason I only use 'non-simple'…

Read Article

Scripting a 'Find-and-Replace' for big text files

By

EDIT 26/04/2014 I wrote the original fandr script to do single-word replacements in big files. To do multiple-word find-and-replace, the 'needle' variables have to be double-quoted, as in the revised script below. An example of a multiple-word replacement is at the end of this article. I use two…

Read Article

News Elsewhere

Linuxtoday.com

Considering Legacy UNIX/Linux Issues

LinuxJournal: Legacy support—it's a big challenge for every software developer, and although Bash and the Linux command-line world hasn't changed that much in the past few years, it's still something to consider before you ship your own software (even if it's free software).

MIPS tempts hackers with Raspbery Pi-like dev board

 LinuxGizmos: Hard to choose between Raspberry Pi, BeagleBone Black, and MinnowBoard Max? Now there's another choice: the open source MIPS-based "Creator CI20" dev board.

China Promotes Linux-Based Operating System Against Windows, Android

 The VAR Guy: The Chinese government is promoting China Operating System, a closed source, Linux-based OS that it hopes will supplant Microsoft Windows and Google Android.

It's All Linux Under the Hood

 FOSSforce: To get help, a newbie often had to grovel, praise Tux and acknowledge the superiority of those offering help.

Chef engineer leaves the company after receiving death threats from its open source community

GigaOm: A Chef release engineer claims that he received death threats and abusive emails due to his contributions on projects relating to the open source configuration management tool.

DNF Makes It A Step Closer To Replacing Yum On Fedora

Phoronix: DNF 0.6.1 was released today and this updated open-source package manager picked up a few more features as it's still in pursuit of replacing Yum on Fedora systems.

Containers vs Hypervisors: The Battle Has Just Begun

Linux.com: Let me make one thing clear up front: I like Docker.

Why Linux Isn't a Desktop Alternative

 Datamation: It's not a matter of technology so much as one of attitude.

GamingOnLinux.com Latest Articles

Brigador, An Isometric Action Game Has An Explosive New Trailer

Brigador is really shaping up to be something truly fun looking, and this new trailer shows it off well.

The Metro Redux FPS Games Will Require OpenGL 4 On Linux

In an interview with eurogamer Oles Shishkovstov the chief technical officer of 4A Games made some remarks about the Linux version of the new Metro FPS games.

Planetary Annihilation Releasing Next Month, New Epic Trailer

Planetary Annihilation is to officially release on September the 5th, the current Linux version is terribly buggy, but the latest test build is very promising.

Braid's Linux Version Is Finally Heading To Steam

Braid is finally set to have the already released Linux version of the hit indie game on Steam, so that's another one down.

The Journey Down Chapter 2 Released For Linux

The Journey Down has returned to our Linux gaming boxes with the promise of more pointing and clicking.

Screencheat Is A Genius New FPS For Linux & It's Fun

Screencheat is a pretty funny idea. The days of split-screen play on old games console FPS games allowed you to see where the other players are, and this game incorporates that into the actual game-play. It has a Linux version too, so we can join in on the cheating fun.

Sentris, An Early Access Musical Challenge Game For Linux

Sentris is a new kind of music game that puts you at the epicenter of musical creation. It's colourful and filled with great music, so what more could you want?

Metro 2033 Redux For Linux Looks Closer To Reality

Metro 2033 Redux is confirmed for Linux, but the actual release date isn't certain yet. Luckily thanks as usual to the excellent SteamDB it looks like it's coming sooner rather than later.

GOG Announce DRM-free Movies, And Some Games Are Being Removed

GOG are DRM-free champions that's for sure, and since they support Linux now we can join in on the fun. They have now announced DRM-free movies, but they will also be removing some games.

Company Of Heroes 2 Looks Like It Is Heading To Linux

Company of Heroes 2 a well loved real time strategy game from Relic Entertainment and SEGA looks like it is heading to Linux thanks to information taking from the excellent SteamDB website.

The Open Source Game Corner Part 3

The third part in my articles on giving some limelight to open source games, this time I have a completely different set to show you!

Universe Sandbox 2, A Physics Based Space Simulator Now In Alpha & On Linux

Universe Sandbox 2 is a physics based space simulator. We never got the original on Linux, but as teased the developers are delivering with Universe Sandbox 2.

Crystal Picnic, A Colourful 2D RPG Released

Crystal Picnic is a fantastic looking 2D RPG that is created as a tribute to the old action RPG games. Created by "Nooskewl" the developers of Monster RPG 2.

Ioquake3 FPS Game Engine Switching Over To SDL2

Not major news, but good news nonetheless. Ioquake3 is the veaily modified engine that was originally used for the Quake III Arena game.

The Funding Crowd 37 (Aug 6th-26th)

Welcome to a new issue of The Funding Crowd! It looks like the summer lull is definitely over, as tons of interesting and good-looking projects are knocking at our doors in search of our pledges.