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

Articles found under tag: scripting

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

DMS to DD to KML with AWK and sed

By

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

Grouping things with AWK

By

In this article I explain one way to group data items with AWK arrays. The code is a little mysterious but the results are impressive, especially in my second example! Case 1: Cricket stats The table 'runs' is tab-separated and lists the 86 national team cricket players who scored (or have so far…

Read Article

News Elsewhere

Linuxtoday.com

Container Myths Debunked at OpenStack Silicon Valley

Datamation: In Alex Polvi's view there are four primary myths when it comes to containers

OpenStack Continues to Push Cloud Integration Vision

eWEEK: At the OpenStack Silicon Valley event, the head of the OpenStack Foundation announces new nonprofit status and developer initiatives.

GNOME Developers Discuss Codenames, GNOME 3.18 Might be Dubbed "Gothenburg"

GNOME 3.18 is due for release on September 23, 2015

Ubuntu 15.04 LAMP server with Apache 2.4, PHP 5.6 and MariaDB (instead of MySQL)

 HowToForge: A LAMP setup is the perfect basis for CMS systems like Joomla, Wordpress or Drupal.

3 steps for planning a successful open source meetup

 opensource.com: Community moderator Nicole Engard recaps Karen Vuong's Texas Linux Fest talk on open source event planning.

Ubuntu Linux continues to rule the cloud

 ZDnet: Ubuntu is more than twice as popular on the Amazon cloud as all other operating systems combined.

Eclipse seeks donations for open source development

InfoWorld: Funding for development work on the Eclipse IDE and other projects will come from individuals and corporate users

Concerning Containers' Connections: on Docker Networking

LinuxJournal: Containers can be considered the third wave in service provision after physical boxes (the first wave) and virtual machines (the second wave).

How to find out if your PC is compatible with Linux

PC World: Can your PC run Linux? Probably. But here's how to find out for sure.a

GamingOnLinux.com Latest Articles

Psychological Horror Adventure Game 'Fran Bow' Released On GOG And Steam, Has Demo

Fran Bow is the creepy point-and-click adventure game about a young girl, who is sent off to a mental institution for children after her parents are…

Attention, Comrades! We Have A Livestream At 5 PM UTC!

The high command wishes to relay to you a message about today's livestream which is indeed happening as it usually does on Fridays. And because we…

Sol, A Cute And Mod-Friendly Platformer, Goes Even Further With Providing Accessibility Options

The charming little platformer, noteworthy for its advanced accessibility options and its copyleft license, was recently updated. It now features a…

GTX 760 Vs R7 370 4G In Company Of Heroes 2

Liam has done his initial port reports and such so it's my turn to feed you some information. I'm once again putting my GTX 760 against the R7 370 to…

Cossacks 3 RTS Shows Off Ukraine In A New Video

I am especially excited to have Cossacks 3 on Linux, and this new teaser video is short and sweet, but it's keeping me excited.About the game…

Solar Shifter EX Looks Like A Pretty Good Bullet Hell Space Shooter

Solar Shifter EX will release for Linux on Steam on the 11th of September, and I must say it looks pretty impressive. Their Steam page isn't up yet,…

I Can't Escape: Darkness, A New Horror Game Coming September For Linux

I Can't Escape: Darkness is a pretty interesting looking horror game that has a confirmed Linux release this September. I look forward to giving it a…

Rocket League Officially Coming To Linux/SteamOS, Rocket League & Portal 2 Free With Steam Hardware

Rocket League is massively popular right now, and we are happy to confirm it's heading our way! You even get a free copy with Steam Hardware. The…

Company Of Heroes 2 Released For Linux, Port Report & Thoughts Included

Feral Interactive have ported yet another excellent game, and this time we are graced with Company Of Heroes 2! It’s yet another game I've been…

No Need For Clinical Trials In 'Big Pharma' Now On Linux, Get Making Some Drugs

Big Pharma is a game about creating a factory to build useful drugs, and making money while you do so. I managed to play a build before release, and…

Puzzle Platformer 'In Between' Released On Steam For Linux, Has A Demo

In Between is a story-driven puzzle platformer with gravity rotation mechanics that has the makings of a new classic. It looks similar to gravity…

Universe Sandbox 2 Released In Early Access With Linux Support

You love your space simulation stuff right? Universe Sandbox 2 has released with full support for Linux, so I decided to check it out. Disclosure:…

Unreal Tournament Has Been Updated Again, Here's Another Look On Linux

The new Unreal Tournament has been updated again, and it's sporting a fresh coat of paint on the main menu, amongst other changes. You can download…

Arma 3 Public Linux Beta Soon, Being Used As An Evaluation

Arma 3 is set to see a Linux beta soon, but they will be looking to see how it goes down before they let it graduate anywhere.Speaking on their…

Unity Editor Lands An Experimental Build For Game Developers On Linux

It has arrived folks! The Unity editor for Linux is now available in an experimental build, and I can't wait to see what Linux developers do with it.…