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

Articles found under tag: scripting

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

Monitor Linux Servers log files in Real-time in your browser using Log.io

 tecmint: Log.io is a small simple but effective application build on top of Node.js and Socket.io, which allows to monitor Linux servers log files in real time through web interface screen widgets.

X.Org Server 1.18 Gets Its First Point Release, Fixes Multiple XWayland Issues

softpedia: X.Org Server 1.18.1 represents the work done by the X.Org project's developers in the last three months

Mozilla Firefox 44.0.1 Patches Graphics Startup Crashes on Linux, Adds Gecko SDK

Among the new features and improvements, we can mention the addition of the Gecko SDK (Software Development Kit)

Alpine Linux Goes All In for Docker

eWEEK: While Docker can run on multiple OSes, including various flavors of Linux and Windows, there has been a movement in the last two years toward highly optimized Docker-focused operating systems

Hewlett Packard Enterprise Scales Large Linux Workloads with Integrity

ServerWatch: Hewlett Packard Enterprise (HPE) is doubling down on its Linux server efforts today with the announcement of the new HPE Integrity MC990 X server.

How to install Fail2Ban and configure it for firewalld on CentOS 7

 HowToForge: Most Linux servers offer an SSH login via Port 22 for remote administration purposes.

AWS Adds Lumberyard and GameLift Cloud Services for Game Developers

The VAR Guy: Amazon Lumberyard and GameLift are new AWS cloud services for creating PC and console games, with mobile and virtual reality support coming soon.

4 open source tools for Linux system monitoring

 opensource.com: David Both shares his favorite system monitoring tools for understanding what is going on in any Linux environment: top, atop, htop, and glances.

Microsoft's Copyrights- and Patents-Based Attacks on GNU/Linux Carry on

 TechRights: The SCO case is still going on and Microsoft has just signed a patent deal with GoPro

GamingOnLinux.com Latest Articles

Firewatch, a first person mystery adventure game released for Linux & SteamOS

Tags:Steam,AdventureFirewatch looks awesome, for the style, the story and the gameplay. It's available day-1 for Linux and SteamOS. Sadly, the…

GOL Cast: Killing mushrooms and spiders in Sproggiwood

Tags:Roguelike,Review,Procedural Death Labyrinth,GOL CastRoguelikes have a tendency to be really complex games with tons of depth and thick user…

Tweaking Performance in XCOM 2

Tags:Unreal Engine,Nvidia,Feral Interactive,AMDWhen Firaxis chose to use Unreal Engine to power their latest title, XCOM 2, they chose to stay on the…

Dying Light: The Following - Enhanced Edition now available for Linux, texture issues

Tags:Zombies,Steam,RPG,ActionDying Light: The Following - Enhanced Edition is a big patch and DLC now available for Dying Light. I have tested it a…

Does Dying Light's Linux to Linux multiplayer fail for you? Please confirm it here

Tags:Zombies,Steam,Editorial I've heard reports far and wide that the Linux to Linux multiplayer in Dying Light is broken. Myself and Samsai tried to…

Multiplayer indie action game 'Super Snow Fight' may get a Linux version if there is enough demand

Tags:Action,Indie Game A developer of Super Snow Fight, a multiplayer action indie game, claims in its Steam discussion forum that if they receive…

GPUOpen has launched, AMD open up more to the community

Tags:Toolkit,Editorial,AMDSorry for the lateness, but GPUOpen from AMD is now officially open to the public. I really like the way AMD is going doing…

XCOM 2 is so popular it has beaten the all time peak player count of a number of games

Tags:Editorial,Feral Interactive,Steam,Strategy This is awesome to see. XCOM 2 has beaten the all time peak player counter of some pretty high…

Gas Guzzlers Extreme looks like it is going to come to Linux, porting starts soon

Tags:Action,Coming Soon,Racing,SteamGas Guzzlers Extreme has an interesting history, but it looks like the developers are once again trying to bring…

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…