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

Articles found under tag: bash

Keeping emails as text files: 2 scripts


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


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


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


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


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


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


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


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


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

DMS to DD to KML with AWK and sed


In a 2014 Linux Rain article I describe a fast 'points plotter' for Google Earth. First I copy a list of latitude/longitudes (lat/lons) from a spreadsheet to the clipboard, then I launch a shell script with a keyboard shortcut. The script builds a KML file from the copied list and opens the KML for…

Read Article

News Elsewhere

Raspberry Pi Zero: the $5 computer

Raspberry Pi Zero runs Raspbian and all your favourite applications, including Scratch, Minecraft and Sonic Pi.

9 MongoDB success stories The open source MongoDB NoSQL database is powering an increasing number of websites and services.

A hitchhikers guide to troubleshooting linux memory usage

 techarena51: This post will hopefully show you how to troubleshoot or at least find out the amount of memory used by Linux and an application running on it

HowTo: Linux Check Password Strength With Cracklib-check Command

 nixcraft: Using the same password on different servers allows attackers to access your accounts if cracker manage to steal your password from a less secure server.

Microsoft and Linux: True Romance or Toxic Love?

LinuxJournal: Common sense says that Microsoft and the FOSS movement should be perpetual enemies.

BSIMM's Data-driven Approach to Software Security

 eSecurityPlanet: The Building Security in Maturity Model's sixth edition features recommendations gleaned from software security practices of more than 100 companies.

Mirantis and FusionStorm Partner on OpenStack Datacenter Appliances

 The VAR Guy: Mirantis, the OpenStack vendor, and datacenter company FusionStorm have joined forces to provide "turnkey" open source cloud computing solutions for the enterprise.

Will open source Qora solve Bitcoin's biggest problems? A core developer behind the open source cryptocurrency Qora explains how blockchain technology will revolutionize everything.

How to install Nginx as Reverse Proxy for Apache on Ubuntu 15.10

 HowToForge: Nginx is not just a web server, it can be used as a reverse proxy for many protocols Latest Articles

A very special livestream tonight, keyboard and mouse vs Steam Controller

Tags:VideoWe interrupt your regularly scheduled broadcasting with an important announcement. Tonight at around 7:30 PM UTC myself and Samsai will…

Rocket League should be on Linux before the end of December

Tags:Steam,Sports,Coming Soon,Action A forum post from one of the Rocket League team has stated that the game will be on Linux before the end of…

The Escapists and all of the DLC now DRM free on GOG for Linux

Tags:Stealth,GOG,DRM Free,Adventure,Action GOG have now put up the Linux versions of the original The Escapists along with all the DLC, so you can…

Some thoughts on Xenonauts the XCOM inspired strategy game, now it’s native on Linux

Tags:Strategy,Steam,Initial Thoughts,Humble Store,GOG I love XCOM, you should all know this by now. It’s one of the best strategy games…

The Zotac Steam Machine ZBOX NEN SN970 impressed OC3D in their review

Tags:Steam,Review,Hardware,Editorial Some good news about the whole Steam Machine parade, OC3D did a pretty long review of the ZBOX NEN SN970 and…

Western style top-down shooter '12 is Better Than 6' released on Steam for Linux

Tags:Steam,Initial Thoughts,Adventure,Action12 is Better Than 6 was funded on Kickstarter last month and is already available as a full release on…

Wine 1.8-rc2 released, brings more stability

Tags:Open Source,WineThe Wine developers are continuing towards a stable 1.8 released, and they have released Wine 1.8-rc2. They have fixed a total…

You there, come watch the Friday Livestream at 6 PM UTC!

Tags:Site InfoAfter a long week of exams (school stuff, not medical) I'm glad I can finally sit down and relax a bit while playing video games.…

GOG have put up some serious classics for Linux, such as Cannon Fodder

Tags:Retro,GOG,DRM Free I do love GOG for their classic games, and what a delivery they have for us today, wow! Cannon Fooder 1 & 2, Leisure Suit…

Our Games Republic store has a sale on, and we have an extra discount for you

Tags:Game Sale For those who don't know already, we have our own store on Games Republic (we get a small cut!). Since it's 'Black Friday' we also…

A 2015 Thanksgiving Retrospection About The Open Source Project 'xoreos'

Tags:Open Source,Game Engine,Editorialxoreos is a FLOSS project aiming to reimplement BioWare's Aurora engine (and derivatives), covering their games…

0 A.D. Alpha 19 “Syllepsis” Released

Tags:Strategy,Open SourceA new alpha release of the open source RTS 0 A.D. has just been released. The new release has various technical improvements…

Feral Interactive have a big sale on their store

Tags:Game Sale Here's an easy chance to snap up some cheap ports from Feral Interactive, as they have discounted their games until November 30th.…

Dying Light's DLC The Following will be on Linux, price set to rise soon

Tags:Zombies,Survival,Steam,RPG,DLC,Coming Soon,Action I have it straight from the developer that Dying Light's DLC The Following will be on Linux,…

Doorways: Holy Mountains of Flesh tested on Linux, very freaky

Tags:Adventure,Early Access,Horror,Steam Today I decided to have a glass of man-up juice and actually play Doorways: Holy Mountains of Flesh. It's…