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

Understanding How Open Source Software Developers Make Money

MakeUseOff: The truth is: many OSS developers and projects do generate revenue.

Wal Commander GitHub Edition 0.17 released

Wal Commander is a Multi-platform open source file manager for Windows, Linux, FreeBSD and OS X

Ubuntu gets closer to debut in Meizu MX4 phone

 LinuxGizmos: The Ubuntu project announced a stable build for Ubuntu Touch phones, a week after Meizu tipped an Ubuntu version of the Meizu MX4 phone due in December

SNOW, A Winter Sports Game Shows A Teaser On Linux, Powered By CryEngine

 GamingOnLinux: SNOW is an upcoming free to play, open world winter sports game that is going to use CryEngine and the developers sent a little teaser out.

InfiniDB going out of business, but its database will live on as open source

PCWorld: Increasingly stiff competition in the database market has claimed another victim, as InfiniDB has ceased operations effective immediately with plans to file for bankruptcy.

Uselessd: A Stripped Down Version Of Systemd

Phoronix: The boycotting of systemd has led to the creation of uselessd, a new init daemon based off systemd that tries to strip out the "unnecessary" features.

Give new life to old phones and tablets with these tips!

LinuxJournal: There are a couple obvious things to do with old devices

ChromeOS vs Linux: The Good, the Bad and the Ugly

 Datamation: Anyone who believes Google isn't "making a play" for desktop users isn't paying attention.

A Linux love story with real love and romance

 DarkDuck: A young man finds love and acceptance with a little timely downloading.

GamingOnLinux.com Latest Articles

Counter-Strike: Global Offensive Linux Beta Due Soon!

Counter-Strike: Global Offensive looks like it will finally enter beta for Linux soon thanks to information from SteamDB.

Flockers Now Available For Linux, From The Creators Of Worms

Flockers is the brand new game from Team 17 who are known for their Worms series of games. In Flockers the sheep that Worms use as weapons are making their stand against the oppressive worm scum.

Excubitor Tower Defence & Action Game Needs Help On Greenlight

Excubitor is a tower defence game with a difference. It's not all about placing towers and waiting for the enemy to walk in a line towards you. It's also an action game you play from an overhead perspective, and it has boss battles.

Pathologic Remake Plans For Day 1 Linux Support, Now On Kickstarter

Pathologic is a plot-driven survival open-world adventure game now on Kickstarter, but it's much more than that.

Starbound Development Is Very Healthy & Isn't Going Anywhere

With all the doom and gloom recently about games here's a nice one. The head of Chucklefish has created a blog post about how healthy Starbound is and will continue to be.

Divinity: Original Sin Still Aims For Linux This Year

We already knew that the Linux version of Divinity: Original Sin wouldn't be out at the same time as Windows, but we didn't know when at all. Users have been asking them about it a lot recently and they still claim it's going to be this year.

Shroud Of The Avatar: Forsaken Virtues RPG Needs Greenlight Help

Shroud of the Avatar: Forsaken Virtues is a great looking RPG currently in pre-alpha that has Linux builds available, and it needs help to get on Steam. The game is being created by a team that includes Richard "Lord British" Garriott the creator of the Ultima series.

The Sunday Gaming Section, Linux Gaming From Around The Web

Here is some Sunday reading for you from other gaming sites across the internet. Not much generally happens on a Sunday, so hopefully this will be a regular article.

Games On AMD FOSS Drivers 3

More driver improvements on the ever changing driver. Mesa 10.3 just came out and the results are in! Here's a look at how the open source driver for AMD GPU's is performing in games.

Reflex, A Potential Successor For Quake Going To Kickstarter

Reflex is a competitive Arena FPS that combines modern tech with the speed, precision and freedom of a 90s shooter. It may become for Quake what UT is for the Unreal series. The game just went on kickstarter and Linux is on their list!

Oculus Rift DK1 VR Device Is Now Open Source

The Oculus Rift DK1 virtual reality device is no longer worked on as it has been succeded by the DK2, so what better way to continue life in the DK1 than to open source bits of it?

Heavy Bullets FPS Officially Released Out Of Early Access

Heavily Bullets is a highly colourful first person shooter that has been on Linux for a while, but it's now a finished game and has left early access.

SNOW, A Winter Sports Game Shows A Teaser On Linux, Powered By CryEngine

SNOW is an upcoming free to play, open world winter sports game that is going to use CryEngine and the developers sent a little teaser out.

Icewind Dale: Enhanced Edition For Linux Is In Testing

Even though we still haven't gotten the Baldur's Gate Enhanced Edition the developer has noted on twitter that Icewind Dale: Enhanced Edition is already in testing for Linux, and it's promising.

The Wine Development Release 1.7.27 Is Now Available.

Wine development team was able to produce a new experimental release today. 1.7.27 bringing many new features and as many as 22 bugfixes.