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

Articles found under tag: bash

How to garble

By

In 2003 a strange paragraph made the rounds on email. It read: Aoccdrnig to rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, olny taht the frist and lsat ltteres are at the rghit pcleas. The rset can be a toatl mses and you can sitll raed it wouthit a…

Read Article

DMS to DD to KML with AWK and sed

By

In a 2014 Linux Rain article I describe a fast 'points plotter' for Google Earth. First I copy a list of latitude/longitudes (lat/lons) from a spreadsheet to the clipboard, then I launch a shell script with a keyboard shortcut. The script builds a KML file from the copied list and opens the KML for…

Read Article

Grouping things with AWK

By

In this article I explain one way to group data items with AWK arrays. The code is a little mysterious but the results are impressive, especially in my second example! Case 1: Cricket stats The table 'runs' is tab-separated and lists the 86 national team cricket players who scored (or have so far…

Read Article

Building sequences of numbers on the command line

By

There are two easy-to-use tools for generating numerical sequences. 'Brace expansion' is a BASH shell built-in, while the seq command is included in the GNU/Linux 'coreutils' package. Each tool has its peculiarities and advantages, as shown below. Simple sequences One difference between the two…

Read Article

Building a Desktop Wikipedia Checker

By

I often look something up in Wikipedia when reading non-browser documents, like PDFs, ODTs and emails. I wanted to have a little desktop window for those look-ups - somewhere I could check Wikipedia without opening a browser and without leaving the document I'm reading. This article describes how I…

Read Article

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

News Elsewhere

Linuxtoday.com

The 11 people you meet on (nearly) every open source project

 ITworld: Open source projects are built collaboratively, across organizations, by professionals and hobbyists alike.

Five Linux Distros for New Users

 FOSSforce: Those who're new to Linux want the best distro out there for new users, which means simple things like ease of use, productivity, speed, and security.

Juniper Partners Contrail Cloud Platform with Canonical Ubuntu OpenStack

 EnterpriseNetworkingPlanet: New platform is targeted at carrier-class NFV deployments.

Docker Advances With Trio of Orchestration Tools

eWEEK: Two months after first announcing Machine, Swarm and Compose, Docker rolls out the three orchestration tools.

How to Create an RSS Scope for Ubuntu Phone

softpedia: At our readers's request, we've decided to make a tutorial about how to create an RSS Scope for Ubuntu Phone,

An open source database for realtime applications

 opensource.com: The world of databases is no stranger to open source.

Half a dozen reasons why openSUSE is a great OS for your PC

 ITworld: While I must also add the standard disclaimer that the best OS is the one that works for you, here are some of the reasons I consider openSUSE to be a great, if not the perfect, desktop OS for just about any user.

Chivalry: Medieval Warfare Exits Beta For Linux, Some Thoughts & A Sale

 GamingOnLinux: Chivalry: Medieval Warfare is now fully out for Linux, and so you may draw your swords.

LibreOffice 4.4.1 “Fresh” is available for download

LibreOffice 4.4.1 is the first minor release of LibreOffice 4.4 “fresh” family, with over 100 fixes over LibreOffice 4.4.0.

GamingOnLinux.com Latest Articles

Hotline Miami 2: Wrong Number Gets Release Date, Linux Is A Day 1 Release

The sequel to the brutally fun Hotline Miami is set to be released on the 10th of March. More importantly, it seems that we'll have a same-day release on Linux.

Europa Universalis IV: El Dorado Released, My Thoughts

Paradox has released the El Dorado expansion for Europa Universalis IV, adding a bunch of new features and most importantly a nation designer which allows you to create your own country to dominate the world with.

Chivalry: Medieval Warfare Exits Beta For Linux, Some Thoughts & A Sale

I guess I had better announce this or the flurry of emails about it will never stop! Chivalry: Medieval Warfare is now fully out for Linux, and so you may draw your swords. It's also 66% off right now!

Pixel Heroes: Byte & Magic, Some Thoughts On This Party-based Roguelike

Pixel Heroes is one of the more interesting indie titles released recently, and I had a chance to take a look at the game and give you some thoughts on it.

Republique Remastered, A Beautiful Stealth Action Game Could Come To Linux

Thanks to a tip we have found out that the recently released Republique Remastered could see a Linux version.

Dungeons 2 From Kalypso Media Due Out For Linux In April, First Game-play Shown

The Dungeon Lord is back – and this time he’s serious! In Dungeons 2, fulfil the Dungeon Lord’s insatiable quest for vengeance by recruiting fearsome new monsters from all corners of the underworld in order to undertake his evil bidding.

Oddworld: New 'n' Tasty Released On GOG & Steam, We Take A Look At The Linux Port

Oddworld: New 'n' Tasty is a revamp of one of the platformers I used to love, so how is it on Linux? Hint: It's good.

Adorable Sokoban-Like Puzzler 'A Good Snowman Is Hard To Build' Released Today, A Must-Have For Puzzle Enthusiasts

The long-awaited puzzle game by Sokobond creator Alan Hazelden is finally released. Time to solve some challenging puzzles and let the lovely animations by Benjamin Davis and the soothing soundscapes of Ryan Roth melt your heart, as the the snow too melts and makes way for spring.

Pre-orders For Cities: Skylines Stand At Nearly 2% For Linux Gamers

The developers of Cities: Skylines are doing a reddit "ask me anything", and they kindly responded to my question about Linux pre-orders so far.

Space Grunts, A Fast-paced Turn-based Action Game From OrangePixel Coming To Linux

Space Grunts is a fun looking and quick turn-based action game, and we have it confirmed it will come to Linux.

Mechs & Mercs: Black Talons, A Real Time Strategy Game, We Take A Gander

Mechs & Mercs: Black Talons is admittedly a game that has been on the back burner with the wave of news recently, so I decided to sit down and take a proper look at this promising looking strategy game.

NEON STRUCT From Eldritch Developer To Release For Linux In March

NEON STRUCT, A political thriller stealth game has been revealed to be releasing in March, and it has a newer trailer.

Speculation: Shadow Of Mordor Appears In A Seemingly Linux Focused App Bundle On SteamDB

This is mighty interesting, just before GDC next week, a new app bundle has appeared on SteamDB comprised almost entirely of Linux games, the only games that aren't on Linux are Shadow of Mordor and Guacamelee! Super Turbo Championship Edition.

Commander Cool 2, A Tribute To Old 2D Arcade Platformers

Commander Cool 2 is a frantic looking tribute to old platformers, and it looks good. We have a massive amount of platformers now, but it could still be what you’re looking for.

Valve Will Launch Own VR Device, To Be Shown At GDC

Valve aren't stopping at gamepads and console-like boxes, as they have announced a VR device they will demo at GDC.