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

Linux-based smart glasses keep it stylish

 LinuxGizmos: Laforge is prepping a $399 beta version of its Linux-based Icis eyewear

Charting new licensing territories with the Open Definition standard

 OpenSource.com: Open Knowledge and the Open Definition Advisory Council have announced the release of version 2.0 of the Open Definition.

Ziggurat, A Dungeon Crawling FPS Is Now Out Of Early Access & On Linux

 GamingOnLinux: Dungeon-Crawling First Person Shooting at its finest!

Discover the Power of Konqueror

MakeTechEasier: If you’re a KDE user, you’ve probably heard of Konqueror.

An early view of GTK+ 3.16

A number of new features have landed in GTK+ recently. These are now available in the 3.15.0 release.

Make Your Own Wireless Printer With A Raspberry Pi

MakeUseOf:  Wireless technology is perhaps the best improvement to home printing for years.

eBay open sources a big, fast SQL-on-Hadoop database

Gigaom: eBay has open sourced a database technology, called Kylin, that takes advantage of distributed processing and the HBase data store in order to return faster results for SQL queries over Hadoop data.

How to Hack Your Own Network and Beef Up Its Security with Kali Linux

Lifehacker: Kali Linux is a security-focused operating system you can run off a CD or USB drive, anywhere.

Why Contribute to an Enterprise Open Source Project?

Linux.com: Few would dispute the notion that open source projects live and die by their communities.

GamingOnLinux.com Latest Articles

Planetary Annihilation Livestream At 5 PM UTC (VODs Included!)

For this week's livestream we have something a bit different. Our friend Liam has challenged me to a fight to the death in Planetary Annihilation and we'll be livestreaming that (possibly) epic match on Twitch.

3D Realms Aiming To Release Anthology Collection For Linux

In their FAQ section for their downloadable 32 game collection 3D Realms have said they are planning to release the collection for Mac and Linux later this year.

Dead Island Zombie Game Now Available On Linux For Some (updated)

Dead Island is the latest zombie game to grace Linux with its presence and helps build up our backlog of games.

Ziggurat, A Dungeon Crawling FPS Is Now Out Of Early Access & On Linux

Dungeon-Crawling First Person Shooting at its finest! Fast-paced combat! Dozens of perks, spells and enemies! Level ups! Random Dungeons! Traps! Badass bosses! Carrots!

Skully's Free Game Tips: Anomaly Warzone Earth

Skully takes a look at how you can get a free copy of Anomaly Warzone Earth from Games Republic. It's pretty easy to do too.

GOL World Tour: Linux Gaming From Canada

This time, GOL World Tour goes back to the Americas - this time to Canada to see what the country has to offer Linux gamers and who the companies are making those games.

A Different Idea For The SteamOS UI

A user on the Steam forum has come up with a concept for a new UI for SteamOS, and it looks slick! Take a look at the video inside.

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.