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

Articles found under tag: scripting

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

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

News Elsewhere

Linuxtoday.com

DockerCon Showcases New Docker Release, Containers-as-a-Service Model

In this slide show, eWEEK takes a look at some of the highlights of the DockerCon 16 conference.

Peppermint OS 7 Linux Distribution Officially Released Based on Ubuntu 16.04 LTS

softpedia: Release highlights of Peppermint OS 7 include a new version of the well-known Ice Site Specific Browser framework

DAISY: A Linux-compatible text format for the visually impaired

DAISY is a specialized text reader format that can be used for anything from textbooks to news articles.

Organize your movie and TV files with tinyMediaManager

tinyMediaManager is an open source media management tool that generates video file metadata.

How to install SuPHP on CentOS 7.2

 HowToForge: This improves the security of hosted websites as you can run the PHP scripts of each website under a different user.

Calibre 2.60 eBook Viewer Improves the Config Dialog for the Kobo Touch Driver

New features implemented in the Calibre 2.60 release include an improved configuration dialog for the driver that handles Kobo Touch ebook readers

7-Way Linux Distribution Comparison For Summer 2016

Phoronix: Given the recent releases of Fedora 24, Solus 1.2, and other GNU/Linux distribution updates, here is our latest performance testing roundabout of seven popular OS releases on the same Core i5 Skylake system.

Behind the new Fedora Developer Portal

Fedora Magazine: The main purpose of the portal is to serve developers (surprise!).

GamingOnLinux.com Latest Articles

Announcing the GamingOnLinux wallpaper competition

Tags:CompetitionI need a new wallpaper, and I would very much like one that in some way has GamingOnLinux branding on it. Here's your chance to shine…

The Wine Development Release 1.9.13 Is Now Available

Tags:Wine,Open Source,Beta The Wine team released today another development release of their software. Version 1.9.13 has many small changes…

FORCED SHOWDOWN now available on Linux & SteamOS

Tags:Steam,RPG,ActionThe developers of FORCED SHOWDOWN have emailed in to let us know that the deck building action twin-stick game is now available…

Two Worlds Epic Edition openworld action RPG now on GOG for Linux

Tags:Wine,RPG,GOG,Action GOG have now added in a Linux build for Two Worlds Epic Edition that requires Wine in order to function. I have no problem…

Nidhogg, the fencing action game is heading to Linux with a Beta

Tags:Action,Beta,Coming Soon,Humble Store,SteamNidhogg is a rather popular little action gaming about what look like stick figures doing some…

Join me at 7:45PM UTC for the weekly Linux gaming livestream, also helpers needed

Tags:Video,LivestreamAs announced previously by Samsai he is temporarily leaving us for his mandatory army training, so I will be taking the…

The future of the Friday Livestream and my other GOL work

Tags:Site InfoJust to make sure that everyone is getting an unreasonable amount of big announcements today, I am making one of my own concerning the…

The work to bring Banished over to OpenGL is still going on

Tags:Coming Soon,Simulation,Steam,Strategy The developer of Banished has written up another blog post about porting Banished to OpenGL for the Mac…

And so it begins, the Steam Summer Sale is here

Tags:Game Sale,Steam Open up those wallets, as the Steam Summer Sale is now upon us. Already some cracking deals to be found. Steam will be up and…

Europa Universalis IV celebrates Midsummer and a million copies sold with a free music DLC

Tags:DLC,Sandbox,Steam,StrategyThe Linux-friendly Swedish developers are celebrating a million copies of Europa Universalis IV sold with a collection…

The Long Dark survival game updated with a new skills and feats system

Tags:Survival,Steam,Sandbox,Early AccessThe Long Dark is probably one of the nicest survival games available on Linux right now, it's cold, it's…

After a truly long time, the level editor for the sadistic 'Hotline Miami 2: Wrong Number' is ready!

Tags:Steam,Action As you saw in the above video, the level editor was announced to come along with the game for its release. Though, Hotline Miami 2:…

Escape from a relentless horde in 'SWARMRIDERS', a FREE cyberpunk twin stick shooter, some thoughts

Tags:Steam,Initial Thoughts,Indie Game,Free Game,Arcade,ActionSWARMRIDERS is the perfect example of minimalism in gaming well executed. After you…

The Wardrobe: A pop culture point & click adventure game for Linux

Tags:Adventure,Greenlight,Indie Game,Point & Click,Press Release,SteamThe Wardrobe is a 2D point & click game inspired by the great 90s…

XCOM 2 - Alien Hunters thoughts, prepare to get frustrated

Tags:Strategy,Steam,Initial Thoughts,DLC So I've been playing through XCOM 2 again, but now with the Alien Hunters DLC enabled and my god it's…