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

Articles found under tag: bash

Finding unmatched braces (brackets)

By

Recently I was checking for unmatched braces in a big text file with nearly half a million lines (300+ MB). Was there a closing brace for every opening brace? The text file was called 'beetle' and was actually a tab-separated table with each line divided into 77 fields. What I wanted to do was find…

Read Article

How to use flags in AWK

By

Flags in AWK are variables which are set to either true or false. They're handy for defining ranges over which AWK can act, as shown below. The AWK used here is GNU AWK 4.1.1 (gawk 4). Sometimes flags aren't needed I'll demonstrate with a simple text file called demo, which has 6 lines with 3…

Read Article

Proofreading for illusions with grep and AWK

By

Lexical illusions are very hard to find when proofreading. The most common lexical illusion is a duplicated word, as in this well-known example: A lexical illusion: many people are not aware that the the brain will automatically ignore a second instance of the word 'the' when it starts a new line. …

Read Article

Transposing rows and columns: 3 methods

By

Swapping the rows and columns in a table on the command line would seem to be a fairly easy thing to do. For example, with this tab-separated table (called 'tabbed') as input: get this tab-separated table ('swapped') as output: Datamash Transposing rows and columns is indeed easy if you have the…

Read Article

I think I like backreferences (sometimes)

By

Backreferences are part of the complicated and sometimes confusing world of regular expressions. The basic idea is this: you can substitute any part of a regular expression with a backslash followed by a number, so long as you surround the part to be substituted with round brackets. The command…

Read Article

Keeping emails as text files: 2 scripts

By

Most people store and organise their personal emails as individual files (messages) in folders. Those folders might be on a webmail company's servers, or in a mail client program on the user's personal computer. In both cases the emails are probably in a special email format. I'm horribly…

Read Article

Scripting a fancy chooser for recently used files

By

I recently scripted a GUI dialog that lists my 10 most recently modified files in reverse chronological order and allows me to choose more than 1 file for opening. The dialog is launched with a keyboard shortcut and is shown here with 2 files selected: The script is in copy-and-paste form at the…

Read Article

Gnumeric: a filter-and-export script

By

My wife likes to organise and store information in Gnumeric spreadsheets. Every now and then she needs to filter her data and save the result to a new spreadsheet. Gnumeric doesn't have a simple way to do that. It has a complicated way to do it ('Advanced Filter'), but nothing so straightforward as…

Read Article

How to insert code snippets on the command line without executing them

By

You can store a code snippet in a shell alias or a function, but when you type the alias or function name in a BASH shell and press 'Enter', the shell executes (or tries to execute) the snippet. That's no good if the snippet is incomplete or needs editing. A simple workaround is to paste the…

Read Article

How to read a file N lines at a time in BASH: 3 methods

By

The file I'll be using for this demonstration is called demo and looks like this: demo is plain text with 2 tab-separated columns. The first column is sorted alphabetically, but the second column isn't sorted. What I want to find out is how many different letters are in the second column for each…

Read Article

News Elsewhere

Linuxtoday.com

LinuxConsole 2.5 Gaming Distro Out Now with Minecraft, SuperTux, and Many Games

 LinuxConsole ships with modern GNU/Linux technologies and open source software/games, as well as with both the LXDE and MATE desktop environments.

Can Linux survive another 25 years?

Linux's longevity is a testament to the open source community as a whole, and not just one man, such as Linus Torvalds.

StrongSwan based IPsec VPN using certificates and pre shared key on Ubuntu 16.04

Learn how to install the strongSwan IPsec VPN on Ubuntu 16.04 (LTS)

4 tips for teaching electronics to kids

Oyvind Nydal Dahl has dedicated himself to teaching electronics to beginners, both kids and adults.

Open source drone controller has an FPGA-enhanced brain

Aerotenna has launched an open source, $499 OcPoc drone flight controller that runs Linux on an Altera Cyclone V ARM/FPGA SoC.

LinuxCon: Tracing Linux's Roots, Mapping Its Future

Starting in 2017, LinuxCon will be renamed the Open Source Summit

How to Install nginx and google pagespeed on Ubuntu 16.04 (Xenial Xerus)

This tutorial shows how to build a nginx .deb package for Ubuntu 16.04 from source that has Google PageSpeed module compiled in.

Microsoft at LinuxCon: Building Open Source Cred One Conference at a Time

To say that Microsoft and open source have a rocky history would be an understatement.

Calamares 2.4 Universal Installer Framework Polishes Existing Functionality

Calamares 2.4 adds a new module called netinstall to allow the choice of installing various packages during installation

GamingOnLinux.com Latest Articles

Travel a dying world in The Final Station, Linux version confirmed

Tags:Action,Coming Soon,Indie Game,Simulation,Steam,SurvivalI love indie games, as they tend to do gameplay larger studios won't touch. The Final…

Fossil Echo, a story-driven, short and great looking platformer is still coming to Linux

Tags:Coming Soon,Platformer,SteamI really love the visuals in Fossil Echo! Sadly it wasn't a day-1 release, but the developers have stated that…

State of Mind, a fantastic looking futuristic thriller game built with Unreal Engine that's coming to Linux

Tags:Unreal Engine,Steam,Coming Soon,AdventureState of Mind was pointed out in the GOL IRC (thanks qptain_Nemo!) and wow, this looks quite…

The Wine Stable Release 1.8.4 Is Now Available

Tags:Open Source,Wine The Wine team released today fifth stable release of 1.8 branch of Wine. Version 1.8.4 has many small changes including 50…

Join me for our weekly Linux Gaming livestream live on Twitch tonight!

Tags:LivestreamTonight is the night folks, you can all take pleasure in how terribly bad I am at playing games live on Twitch! I will be live around…

Addictive free arcade game 'Super Crate Box' has its Linux port released

Tags:Free Game,ArcadeSuper Crate Box was briefly mentioned in this GOL article, regarding the developers' plans to port three of their games to…

Early Access supernatural newspaper RPG 'Daily Chthonicle: Editor's Edition' is likely coming to Linux

Tags:Steam,Simulation,RPG,Coming Soon,AdventureDo you like games inspired in the works of H.P. Lovecraft? Then check out this horror newspaper…

BUTCHER, a blood-soaked love letter to the early 90s announced with Linux support

Tags:Unity3D,Steam,Coming Soon,ActionBUTCHER looks like a cross between Broforce and Doom and has jumped straight to the top of my watch list. The…

The incredibly cool looking first-person adventure game 'Valley' looks like it's heading to Linux

Tags:Adventure,Coming Soon,SteamI had never heard of 'Valley' before until it was emailed in by Colin (thanks!), and wow it looks marvellous. It's…

The open source Vulkan driver for AMD can now run Dota 2

Tags:AMD,Drivers,Open Source,VulkanA pretty good milestone has been achieved with the open source Vulkan driver for AMD that Dave Airlie has been…

Crusader Kings II: The Reaper’s Due now available, brings more death and pestilence

Tags:Strategy,Steam,Sandbox,DLCParadox Development Studio’s successful medieval grand strategy game, Crusader Kings II, has seen the release of…

A look at Planet Nomads now it's in closed alpha and available on Linux

Tags:Video,Unity3D,Survival,Sandbox,Preview,Early Access,AlphaGood evening explorers, today I took a look at Planet Nomads a very early build of what…

Control a farting cat lost in space in Miaou Moon, now on Linux

Tags:Casual,Itch.io,Platformer,SteamMiaou Moon is a charming, fun and all around entertaining game. The developer sent in a key for me to take a…

Slain: Back From Hell released for Linux on GOG, some thoughts

Tags:Platformer,Initial Thoughts,GOG,Action,SteamSlain: Back From Hell is the revamped of the poorly received Slain, now that it's available on GOG…

Mother Russia Bleeds, an old-fashioned beat 'em up releases next month and has a trailer

Tags:Action,Coming Soon,GOG,Humble Store,SteamMother Russia Bleeds certainly looks good for a retro inspired beat 'em up and the trailer looks…