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

Articles found under tag: bash

Finding unmatched braces (brackets)


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


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


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


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)


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


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

News Elsewhere

HPE backs off from OpenStack development

ZDnet: HPE still supports OpenStack in its Helion cloud program, but it's cutting way back on how much it's spending on helping create OpenStack.

A maturing OpenStack looks to the future

TechCrunch: After 14 releases in the last six years, it’s clear that OpenStack is now a pretty mature project; that definitely showed at the project’s latest developer conference in Barcelona, Spain this week.

What is OpenStack?

Datamation: OpenStack isn't just about the cloud, it's a whole approach to how software can be built.

Is OpenStack Cloud Interoperability a Myth?

eWEEK: Boris Renski, co-founder of Mirantis argues that interoperability doesn't start at the infrastructure layer, it starts with applications.

2 free desktop recording tools to try: SimpleScreenRecorder and Kazam This month we look at two free screen recording tools for Linux: SimpleScreenRecorder and Kazam.

Python file-management tricks for digital artists

If you've done digital artwork for any appreciable amount of time, then the importance of good file management should be apparent to you.

Setting Up Real-Time Monitoring with Ganglia for Grids and Clusters of Linux Servers

Ganglia, a monitoring system that is easily scalable and allows to view a wide variety of system metrics of Linux servers and clusters (plus graphs) in real time.

Nmap 7.31 Security Scanner Updates Npcap with Raw 802.11 Wi-Fi Capture Support

New features in Nmap 7.31 include Npcap 0.10r9, which has been upgraded from version 0.10r2

How to Install Rocket.Chat Server with Nginx on Ubuntu 16.04

Rocket.Chat is a free and open source online chat solution for team communication, it allows you to build your own slack like online chat. Latest Articles

Linux community has been sending their love to Feral Interactive & Aspyr Media

Tags:Aspyr Media,Editorial,Feral InteractiveThis is awesome to see, people in the community have sent both Feral Interactive & Aspyr Media some…

Thoughts on 'Stellaris' with the 'Leviathans Story Pack' and latest patch, a better game that still needs work

Tags:Strategy,Steam,Initial Thoughts,DLCStellaris [Steam, Official Site] has come a long way since the initial release, so I checked back on how it…

Why Linux games often perform worse than on Windows

Tags:EditorialI still see so much confusion and outright misinformation being spread about why a lot of Linux games perform worse than Windows, so…

Slime Rancher, the awesome game about farming adorable slimes has been updated

Tags:Early Access,Steam,GOG,Adventure Slime Rancher [Steam, GOG, Official Site] is a little favourite of mine, as it has some pretty fun gameplay and…

Game porter Ethan Lee has done a write-up of the recent SteamDevDays

Tags:Editorial,SteamGame porter Ethan Lee, who has done tons of Linux ports went to SteamDevDays and he has now done a write-up of the experience. It…

Meadow, an odd 'forum in games clothing' is now available with Linux support

Tags:Steam,Indie Game Meadow [Steam, Official Site], from the developers of Shelter is a purely online game where there's no objectives, and it just…

Some thoughts on 'Pavilion', the stylish fourth-person puzzling adventure

Tags:Adventure,Initial Thoughts,Puzzle,Steam The developer of 'Pavilion' [Humble Store, Steam, Official Site] was kind enough to send in a key to…

Looking to capture gameplay from one Linux PC on another, what should I be getting?

Tags:HardwareUpdate: Turns out using Nvidia's NVENC with OBS Studio actually works really nicely. Something I have been noticing recently is that a…

Streets of Rogue, the awesome RPG rogue-like mega-game is going to support online co-op

Tags:Demo,Free Game,Indie Game,Roguelike,RPG,Sandbox,Unity3DStreets of Rogue [Official Site] is already an extremely cool game, but now it's about to…

Desura, IndieRoyale and DailyRoyale now have new owners who plan to revive them

Tags:Desura,EditorialLooks like Desura is going to make a comeback sometime soon, as the new owners OnePlay have announced they have acquired it.…

Looks like Mojang will be supporting the new Minecraft launcher on Linux

Tags:EditorialGood news Minecraft [Official Site] fans! Mojang seem to have changed their minds on Linux support for the new Minecraft launcher they…

'The Wardrobe', a point & click adventure game release date announced, with day-1 Linux support

Tags:Adventure,Indie Game,Point & Click,Steam Point & Click adventure game 'The Wardrobe' [Official Site] to release with day-1 Linux support…

Classic platformer 'Titus the Fox: To Marrakech and Back' now has a Linux version on GOG

Tags:Action,DRM Free,GOG,Platformer,Retro,DOSBox 'Titus the Fox: To Marrakech and Back' [GOG], a platformer from 1992 that was originally released…

2D Tactical RPG 'Dungeon Rushers' is a game you may want to give a look at, demo available

Tags:Demo,Dungeon Crawler,Indie Game,RPG,Steam,StrategyDungeon Rushers was already covered in this previous GOL article, and it has moved to a full…

Human: Fall Flat released DRM free on GOG, a physics-based 3D puzzler

Tags:Indie Game,GOG,Initial Thoughts,Puzzle Human: Fall Flat [GOG, Official Site] was released on Steam back in July, but it now has a fresh DRM free…