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

Articles found under tag: scripting

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

Building a Desktop Wikipedia Checker

By

I often look something up in Wikipedia when reading non-browser documents, like PDFs, ODTs and emails. I wanted to have a little desktop window for those look-ups - somewhere I could check Wikipedia without opening a browser and without leaving the document I'm reading. This article describes how I…

Read Article

The header line: how to add, delete and ignore it

By

In a plain-text table, the first or header line usually contains the names of the fields. In this article I've pulled together a variety of ways to add and delete a header, and also how to do things with the rest of the table while leaving the header intact as the first line in the file. Add a…

Read Article

Joining Tables on the Command-Line

By

This article compares 3 different ways to join tables on a common field. All 3 work OK on small tables, but there's a big difference in speed when the tables to be joined are large, as shown below. Table joining isn't something you need to do if you store data in a simple, flat-file database like a…

Read Article

Splitting a File Elegantly

By

In a previous Linux Rain article I compared different ways to delete blank lines, and showed that the AWK way was the simplest and most thorough. Here I show how to split a text file into multiple text files using a surprisingly simple AWK command. Background In 2013 I published an article in Free…

Read Article

Tips on getting (and suggesting, and editing) user input

By

In a previous Linux Rain article I explained how to use the YAD dialog to do multiple-item data entry in a GUI. Here I show one way to allow users to check and edit what they've entered in YAD. I also explain how to offer default, editable inputs in terminal-based data entry, and how to color the…

Read Article

How to get nowhere in particular

By

In this tutorial I explain one way to generate a random geographical location, using simple command-line tricks. Latitude and longitude: decimal degrees Latitude runs from 0 to 90 degrees from the Equator to the North Pole, and 0 to 90 degrees from the Equator to the South Pole. Longitude in…

Read Article

Top 10! Fun On The Command Line

By

If you just love making 'top 10'-type lists but are a little embarrassed to say so, tell people you're passionate about data exploration. To impress them even more, explain that you do your data exploration on the command line. But don't ruin the impression by telling them how easy that is! In this…

Read Article

ODT to TXT, but keep the line numbering

By

The title explains what this article is about. If you save an .odt file as text, or copy/paste the contents as a text file, or run odt2txt or the unoconv utility, you lose the apparent line structure of the original, and with it the line numbering. But there is a way... Losing apparent line…

Read Article

Scripting a 4-Color Multiple Grepper

By

I wrote the shell script described here ('grep4') to find up to four items at the same time in my data tables, which are big text files with one record per line. The script gives each searched-for item its own color on the terminal screen. It lets me know in advance how many 'hits' there are, so…

Read Article

News Elsewhere

Linuxtoday.com

How To Stress Test CPU and Memory (VM) On a Linux and Unix With Stress-ng

 Nixcraft: These tools are also useful for sysadmin, system builders, and overclockers who want to test their hardware or server under high load and monitor stability and thermal environment.

GParted Live Now Supports Microsoft's New Filesystem, ReFS

 softpedia: GParted Live is a small bootable GNU/Linux distribution that has a lot of features and that can be used in operations like creating, reorganizing, and deleting disk partitions on a variety of filesystems.

11 Useful Linux Terminal Commands, Tip and Tricks For Beginners

 EveryDayLinux: This guide has a list of 11 Linux Terminal Commands that as a beginner I wish someone had shown me, including keyboard shortcuts, sudo !! and htop.

My open source career as a systems librarian

 opensource.com: Though it's not always obvious, libraries use a remarkably large amount of free and open source software and systems.

Sharing Admin Privileges for Many Hosts Securely

LinuxJournal: The problem: you have a large team of admins, with a substantial turnover rate.

Debian Forked: All for Devuan and Devuan for All?

LinuxInsider: It is hard to see the direction Devuan will take, given that the project is still in its early days.

Ubuntu 15.04 Is The Easy Path To Better Performance For Ubuntu Users On Intel Broadwell

Phoronix: Unless you manually upgrade your kernel and other system packages from your Ubuntu 14.10 installation, Ubuntu 15.04 Vivid Vervet is an important release for users of new Intel Broadwell systems for ensuring your hardware reaches its maximum performance potential.

Optimising Raspberry Pi code

Linux User & Developer: In any low-resource system, you need to make maximum use of what is available. Profiling helps you to figure out where to focus your efforts

Five UX must-haves for mobile enterprise apps

 Enterprisersproject: Developing enterprise mobile apps also opens a new set of challenges.

GamingOnLinux.com Latest Articles

Dying Light Is Almost Playable On Linux, If You Do Some Tinkering (Updated)

Thanks to pointers from our community member xpander69, we have found that Dying Light can be played almost acceptably on Linux with some messing around with the files. Updated.

Starbound's Massive Stable Update Released, It's On Sale, And We Have A Server

Starbound is a fantastic game, and the stable update has been long overdue, but that wait ends right now. The stable update is absolutely massive, and it's really worth trying out.

Aspyr's Fahrenheit: Indigo Prophecy Remaster Is Real And It's Out, We Have Keys For You

Few days ago the remaster of Fahrenheit popped up on Amazon with Aspyr logos and penguins. Well, it seems that Aspyr is indeed behind the remaster and the Tux was put on there for a purpose. Behold, the next Aspyr Linux port is here!

Outlast, That Really Scary Game Looks Like It's Still Heading To Linux

Good news folks, thanks to a comment on a recent article we were poked about taking a look at the progress of porting Outlast to Linux, and it seems to have a new private Linux build in testing.

GOL Cast: Fragging Bots And Testing New Maps In Xonotic

We would like to interrupt our stream of news about AAA games and bring you some critique on the new Xonotic 0.8 version. So, enjoy!

Out There: Omega Edition, A Hard Sci-fi Space Exploration Game Now In Beta For Linux, My Thoughts

Out There: Omega Edition has landed on Linux in the form of a beta, and it's a game we have been eagerly waiting for. Thankfully I've had some time to test before the official release, and here are some thoughts.

Darksiders Linux Port Looks Like It Is Still Happening

Darksiders is another big game we are excited about, and sadly the current people in charge of the port haven't replied to our messages, but thanks to SteamDB we can see it's still happening.

The Witcher 2 Has A New Beta For Linux, The Improvements Are Staggering

We know how some of you feel about wrappers, but that's an old argument now. The game is here, and the developers are still working on improving it. The Witcher 2 had a new beta a few days ago, and we took a look and just how much of an improvement it is.

Scirra’s 'Construct' Game Creation Editor To Support Linux With Construct 3

I love the idea of game creation tools that require no programming knowledge, as they enable hobbyists to have fun, quick prototyping and much more. Construct 2 is one of the finest around, and the developers have laid out plans for Construct 3.

Borderlands: The Pre-Sequel New DLC ‘Lady Hammerlock The Baroness Pack’ Lands On Linux

Borderlands: The Pre-Sequel the latest in the Borderlands series that is available on Linux has gained another DLC titled ‘Lady Hammerlock the Baroness Pack’, and this new DLC is available for Linux thanks to Aspyr Media.

Two Worlds II Is Not Coming To Linux, Well Maybe, We Aren't Sure Anymore

Sadly sometimes people go on auto-pilot, and the developer of Two Worlds II and Raven's Cry has confirmed to me they didn't read my previous emails correctly, so Two Worlds II is not coming to Linux, but it might be, confused? I am.

Unfurl Your Scythes, Grim Fandango Is Now Available

Double Fine's remastered version of Grim Fandango has launched and is now available for Linux on Steam, GOG and the Grim Fandango Remastered website.

Majestic Nights, An Episodic Action-adventure-thriller Confirmed To Be In Testing For Linux

Majestic Nights is an episodic action-adventure-thriller set in an alternate 1980s where all conspiracy theories, past and present are True. The developers have looked into it, and have removed parts that don't work on Linux, and so it begins!

Cradle, A Fantastic Looking 3D Adventure Game Shows Linux Progress

Cradle is a really quite good-looking adventure game coming out, and the developers have teased their Linux testing recently.

Dying Light Released For Linux, Some Thoughts, You May Want To Wait

It's quite hard to contain my excitement about this game, but as always we will give it a fair look and tell you what we think about Dying Light. This post continues to be updated, and it's really not good. Updated 28th January for game-breaking bugs.