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

Articles found under tag: bash

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

Split a table and number the pieces: two methods

By

I worked on these bits of code to simplify a shell script of mine. You really wouldn't want to see the script's original commands here — they're way too ugly! The new commands are much prettier and work well. The problem To simplify the story, here's a comma-separated table called demo, sorted on t…

Read Article

News Elsewhere

Linuxtoday.com

Stagefright Poses Serious Risks 1 Year After It First Surfaced

eWEEK: One year after the Stagefright Android flaw was first reported, its effects are widespread. More than 100 related flaws have emerged and millions of users remain at risk.

Group-buy site launches 40Msps BeagleBone ADC cape

 hackerboards: Crowdfunding and group-buying site GroupGets has launched a $79, open source "PRUDAQ" BeagleBone ADC cape with 40Msps analog input capabilities.

Ubuntu 15.10 (Wily Werewolf) Reached End of Life, Upgrade to Ubuntu 16.04 LTS

Ubuntu 15.10 is not an LTS (Long Term Support) release, which means that it has a short life support cycle of only 9 months.

Linux Kernel 4.4.16 LTS Released with Over 150 Changes, It's Already in Solus

Linux 4.4 is currently the most advanced LTS (Long Term Support) kernel branch

Perl tricks for system administrators

Scripting in Perl is quick and easy, and its portability makes your scripts amazingly useful.

How to send sound through Bluetooth on Linux

HowToForge: Bluetooth headsets and speakers are now more popular than ever before, but getting them to work under Linux isn't always very clear.

Conversation With Jonathan Thomas of OpenShot

FOSSforce: Jonathan Thomas has provided the world with OpenShot, a premiere video editing tool available for Linux, Mac and Windows.

pfSense 2.3.2 Open Source BSD Firewall Distro Arrives with Over 70 Improvements

pfSense 2.3.2 is here today to fix a total of 60 bugs that have been reported by users

How to Install Papirus Icon Theme on Ubuntu 16.04 and Linux Mint 18

Are you tired of the default icons for Ubuntu or Linux Mint?

GamingOnLinux.com Latest Articles

Move or Die: a funny 4 player local and online party game!

Tags:Indie Game,Action Move or Die is an incredible, funny and fast paced party game with a lot of mods and funny mutators. You can play local or…

Headlander, the new game from Double Fine Productions will not come to Linux

Tags:Editorial,Steam This is very sad to see from a previously very Linux friendly developer. Headlander from Double Fine Productions will not come…

New version of the itch store app released, as slick as ever

Tags:Itch.io,Open SourceThe itch developers have been hard at work making their open source store app even better for you, and it's lovely. You can…

God is a Cube: Nanomachines Rising, a programming puzzle game is coming to Linux

Tags:Puzzle,Indie Game,Coming SoonGod is a Cube: Nanomachines Rising sounds pretty fun for anyone who likes programming, puzzles and robotics. You…

Empire TV Tycoon, thoughts from a Linux gamer

Tags:Strategy,Simulation,Review It has been a while as other things kept coming up, but I finally take a look at Empire TV Tycoon. I love Tycoon…

Microsoft gives the okay for SWORDY to come to Linux & SteamOS

Tags:Action,Casual,Coming Soon,Early Access,Steam Some good news! SWORDY has been given the green light to come to Linux & SteamOS by Microsoft,…

HaxeFlixel, a free and open source cross-platform game framework needs funds on IndieGoGo

Tags:Crowdfunding,Open SourceHaxeFlixel, a free and open source cross-platform game framework that was used in the creation of Defender's Quest is…

Mojang working on new launcher for Minecraft, Linux might not see support

Tags:Sandbox,Editorial For those still playing Minecraft, you may know that Mojang is working on a new launcher that doesn't use Java (hooray!), but…

Death Road to Canada released on Steam with Linux support, some thoughts

Tags:Steam,Initial Thoughts,Indie Game,Adventure,Action,ZombiesDeath Road to Canada is a brand new Linux game that released on Steam recently and a…

GOL Podcast S1E04: Tomb Raider

Tags:PodcastHowdy folks! Yes, I know it has been a very long time since you have hard from us here on the GOL Podcast! So lets talk some updates on…

Epic Games founder thinks Microsoft will essentially break Steam in later versions of Windows 10

Tags:EditorialThanks to PC Gamer we have been pointed to an interview that Tim Sweeney the founder of Epic Games did, and he's blasting Microsoft yet…

The Talos Principle updated with more Vulkan stability and performance

Tags:Vulkan,Steam,Puzzle,Beta Croteam have continued developing their Vulkan backend for The Talos Principle and have pushed the last beta to stable…

Find a missing woman in 'Moirai', a FREE experimental story-driven game with a great twist, some thoughts

Tags:Adventure,Indie Game,SteamMoirai is a very lightweight and short mini-game (only 13 MB and lasts 10 minutes) with an incredible twist at the…

Overlord, Overlord: Raising Hell and Overlord II (new port!) released on Steam for Linux

Tags:Virtual Programming,Steam,RPG,Adventure,ActionOverlord, Overlord: Raising Hell and Overlord II are all now available on Steam for Linux.…

7 Mages brings a touch more of traditional dungeon crawling to Linux

Tags:Adventure,RPG,SteamControlling a party of adventurers, exploring dungeons and fighting weird magical creatures is an RPG tradition as old as the…