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

Articles found under tag: linux-shell

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

Multiple-item data entry with YAD

By

YAD (Yet Another Dialog) creates GUI dialogs for data entry, user notification, etc. It was written by Victor Ananjevsky and is described as a fork of Zenity. In fact, it greatly extends Zenity and has a very large number of handy options. Here I explain how to build a multiple-item data entry form…

Read Article

Scripting an OCR text archiver for Trove

By

Trove is the National Library of Australia's online database. It contains almost 400 000 000 digital items, including Australian newspaper articles from 1803 to 1954. Trove's newspaper portal is particularly useful. You can view an entire digitised newspaper page, or select (or search for) an…

Read Article

How to kill blank lines elegantly

By

If you do a Web search for 'linux delete blank lines' you'll find lots of command-line advice. Some of the advice, though, only applies to special cases. Here I explain two elegant and general methods for finding and deleting any blank lines in a text file. As a sample text I'll use the 8-line file…

Read Article

Building a gazetteer table from KML files

By

Geoscience Australia has a freely downloadable gazetteer of Australian placenames with more than 370 000 entries. The download is a .zip file (83 mb) containing a user guide together with placenames data in GML, KML and Microsoft Access (.mdb) formats. What I wanted from all that data was a simple…

Read Article

News Elsewhere

Linuxtoday.com

5 myths busted: Using open source in higher education

 opensource.com: How a PhD student finished his degree in fine arts using Linux.

5 Arduino projects to upgrade your car

The Arduino microcontroller opens doors for auto hobbyists and tinkerers.

Stacer An Alternative To CCleaner And Bleachbit On Linux

LinuxandUbuntu: Previously, I have used Bleachbit on Ubuntu but then I found Stacer and I am not looking back.

TypeCatcher - Download Google Webfonts to Your Ubuntu Desktop

TypeCatcher is a font manager with which you can search, browse, and download Google webfonts to use offline on your Linux workstation.

Buttercup - A Modern Password Manager for Linux

FOSSmint: Buttercup is a cross-platform, free, and open-source password manager

The Linux port of Dawn of War III will use both OpenGL and Vulkan

GamingOnLinux: Feral Interactive have just announced some exciting news

How to delete a non-empty directory when you get directory not empty error on Linux

Nixcraft: How do I delete a non-empty directory in bash terminal running on Linux operating system?

Linux-based gizmo offers remote 3D printer control and sharing

LinuxGizmos: Waggle runs Linux 2.6 on an ARM-based Nuvotron N3292602 SoC with integrated H.264 and MJPEG streaming.

GamingOnLinux Latest Articles

Darkest Dungeon’s expansion, The Crimson Court, set to release June 19th

Tags: DLC, Dungeon Crawler, Roguelike, RPGThe very brutal and fun dungeon crawler will get its first expansion quite soon. Thematically about…

BlindQuest, an interactive audio novel, is looking for votes for Steam Greenlight

Tags: Adventure, Visual Novel, Steam, GreenlightSetting itself apart from the majority of visual novels by focusing on the player’s sense of…

Bounty Train, a game about the Wild West and trains, is set to come to Linux

Tags: GOG, Simulation, Steam, StrategyWith detailed equipment and management aspects, Bounty Train [Official Site] also has plenty of thrills and…

Friday Livestream with Samsai at 5 PM UTC!

Tags: LivestreamWe seem to have made it through another week, for today is Friday! You now have a once in a week (Shovel Knight streams do not count)…

Feral announce that Dawn of War III will use both OpenGL and Vulkan

Tags: Coming Soon, Feral Interactive, Strategy, Vulkan Feral Interactive have just announced some exciting news! The Linux port of Dawn of War III…

Hyper Knights, the Medieval mix of strategy and action is now fully released, multiplayer is coming

Tags: Action, Indie Game, Steam, StrategyHyper Knights [Steam] is one of those titles I previously picked up thinking nothing of it, but it turned…

SteamVR updated with experimental Linux support for SteamVR Home

Tags: Steam, Virtual Reality Valve have pushed out another update to SteamVR, this time Linux has been given experimental support for SteamVR Home.…

Wine 2.9 released with support for Direct3D tessellation shaders

Tags: WineWine 2.9 is now officially available and it's a very interesting one. Fantastic work from the Wine developers. Highlights:Support for…

Planet Nomads officially lands into Early Access

Tags: Early Access, GOG, Initial Thoughts, Sandbox, Steam, SurvivalPlanet Nomads [Steam, Official Site, GOG], the rather fancy looking sandbox…

Some thoughts on possessing dead bodies MidBoss, now on Linux as a day-1 release

Tags: Steam, Indie Game, Roguelike, ReviewI've been playing a bit of MidBoss [itch.io, Steam, Official Site], a new roguelike from Kitsune Games with…

The Culling survival game still broken, despite the attempted fix in the latest patch

Tags: Action, Early Access, Indie Game, Steam, Survival Despite the developers patching The Culling [Steam] today, which claims it addressed the…

Mesa 17.1.1 officially released

Tags: Drivers, Mesa, Open SourceThe Mesa team has officially released Mesa 17.1.1 which is a bug fix release to provide better stability in the open…

Installation 01, the Halo fan-game that will support Linux has a new trailer

Tags: Action, Coming Soon, FPS, Unity3DThe rather epic looking Halo fan-game Installation 01 has a fresh new trailer and it's certainly got me…

Blasphemous is a promising looking dark and brutal non-linear platformer

Tags: Action, Coming Soon, Crowdfunding, Indie Game, PlatformerBlasphemous, a dark and brutal non-linear platformer is currently on Kickstarter and…

Reminder: Update your PC info for the next round of statistics updates

Tags: Survey, Site InfoThis is your once a month reminder to make sure your PC information is correct on your user profiles. A fresh batch of…