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

Articles found under tag: bash

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

Some baby name problems

By

No, these aren't homework problems from a computer science class. They're interesting head-scratchers based on a data-analysis project I worked on recently, with the data 'reimagined' here for simplicity but with the underlying problems intact. We'll start with boys and girls, which are text files…

Read Article

A "Track Changes" script for data cleaning

By

The complicated-looking script at the end of this article is in two parts. The first part detects the changes made when a data table is edited, and reports the changes as a plain-text logfile. It's a straightforward bit of shell scripting based on the diff command. The second part of the script…

Read Article

How to garble

By

In 2003 a strange paragraph made the rounds on email. It read: Aoccdrnig to rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, olny taht the frist and lsat ltteres are at the rghit pcleas. The rset can be a toatl mses and you can sitll raed it wouthit a…

Read Article

News Elsewhere

Linuxtoday.com

Make a $40 Linux or Android PC with this tiny new Raspberry Pi 2 rival

PCWorld: Hardkernel's Odroid-C2 supports 4K video and gaming

Docker Official Images are Moving to Alpine Linux

Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busy box

MaruOS claims to turn your Android phone into a Linux desktop

Liliputing: Odds are that the smartphone in your pocket is powerful enough to run some desktop apps like office suites, web browsers, and other productivity tools.

Calligra 2.9.11 Office Suite Launches for Linux with New Krita and Kexi Bugfixes

As expected, Calligra 2.9.11 is only a bugfix release

Rugged Turing Phone to Run on Sailfish OS, Not Android

LinuxInsider: The Turing Phone, molded from a single unit of the Liquidmorphium liquid-metal alloy, is designed to be more durable to absorb shocks and prevent screen breakage.

The Talos Secure Workstation Is A High-Performance Libre System

Phoronix: The Talos Workstation is built around the open-source-friendly IBM POWER8 processor.

The Xen Project’s Lars Kurth on the Promise (and Debugging) of Unikernels

The New Stack: On the one hand, we have projects such as the Xen Project’s MirageOS, which is single language unikernel

Mozilla Changes the Release Schedule of Firefox

Mozilla is making some changes to the Firefox schedule, and it looks like they are going to give more time to developers between releases.

Ubuntu Linux in the Wild: How a French University Uses Unity

The VAR Guy: Ubuntu, the Linux-based open source OS from Canonical, is being used in a library in France with the Unity interface.

GamingOnLinux.com Latest Articles

Valve rep mentions they will eventually survey Big Picture & SteamOS

Tags:EditorialCurrently Steam Big Picture mode and SteamOS don't get a hardware survey, so even if millions of people pick up a Steam Machine we…

Dying Light's online modes get bigger with The Following, hopefully they actually fix it for Linux

Tags:DLC,Steam,ZombiesI do love the single player in Dying Light, and I am very much looking forward to Dying Light Enhanced Edition and The…

Ghost Theory, a unique horror game that also supports Linux, is now on Kickstarter!

Tags:Press Release,Horror,Crowdfunding,AdventureDreadlocks Ltd, indie game development studio responsible for last year's 2D cyberpunk RPG Dex,…

The final results of the Linux GRID Autosport tournament

Tags:Editorial Now that the braking-dust has settled a bit, I thought I should do a little write-up on the first official GOL Grid Autosport…

Shadowrun: Hong Kong gets free Extended Edition update

Tags:DRM Free,GOG,RPG,SteamThe latest in the line of cyberpunk RPGs by Harebrained Schemes gets a really beefy update available to all players for…

Don't Starve: Shipwrecked DLC is now available on SteamOS & Linux

Tags:DLC,Early Access,Steam,Survival Heads up survivalists! Don't Starve: Shipwrecked the good looking new DLC for the single player version of Don't…

Croteam confirm The Talos Principle will be their first Vulkan title

Tags:Vulkan,Puzzle,Coming SoonCroteam are aware of the excitement and general interest in their titles running on Vulkan, and they have confirmed it…

Friday Livestream commencing at 6 PM UTC, Commander

Tags:Site InfoIt likely doesn't come to you as a surprise that I am going to be playing XCOM 2 on the Friday Livestream. It's the biggest game that…

XCOM 2 tested on R7 370 with Crimson and RadeonSI

Tags:AMD,BenchmarkYou have seen Liam's port report of XCOM 2 on Nvidia hardware and it's time for me to take a look at the AMD performance. So, let's…

XCOM 2 released for SteamOS & Linux, port report included

Tags:Unreal Engine,Strategy,Steam,Feral InteractiveOh baby, here we go. Thanks to Feral Interactive, XCOM 2 has been officially released today for…

Killing Floor 2 still planned for SteamOS & Linux, lacking the manpower for it right now

Tags:Zombies,Steam,FPS,Coming Soon,Action We finally have something other than silence from Tripwire about Killing Floor 2, and the news isn't great…

LittleBigPlanet developers seeking funding for co-op action adventure, Linux confirmed

Tags:Crowdfunding,Adventure,ActionTwo former key developers of PlayStation hits like Tearaway, LittleBigPlanet and Ratchet & Clank: Tools of…

Batman: Arkham Knight for Linux & SteamOS cancelled

Tags:Editorial,SteamConsidering how terrible the Windows PC release of Batman: Arkham Knight was/is I’m not really surprised. Hopefully we will…

XCOM 2 can be pre-loaded ready for release on SteamOS/Linux & exact release time revealed

Tags:Strategy,Steam,Coming SoonI'm not going to apologise for many XCOM 2 articles, I am excited, deal with it. XCOM 2 can now be pre-loaded ready to…

Mad Max looks like it really is coming to SteamOS & Linux after all, another massive game for us

Tags:Steam,Coming Soon,Action Fantastic news, looks like Mad Max is actually coming to Linux if new information from SteamDB is to be believed. …