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

Articles found under tag: scripting

A simpler track-changes script

By

Back in March 2015 I blogged about a track-changes script that reports the edits made to a tab-separated data table. The script actually generates two reports: a plain text version and a fancy HTML version. A slightly improved version of that script is on my data-cleaning website here. The script…

Read Article

A Script to Toggle the CPU Performance Governor

By

If you're a gamer, you probably find your computer's default CPU scaling (usually the "balanced" or "powersave" setting) is more than sufficient the majority of the time, but just occasionally, a game will run at its best when the CPU is set to maximum frequency all the time,…

Read Article

File manager: open a terminal, but not here

By

Each of the two file managers I use — Thunar and Xfe — allows me to open a terminal in a selected directory. In Thunar, I right-click on a directory and choose Open Terminal Here, and in Xfe I use the keyboard shortcut Ctrl + t. In both cases, though, the terminal window opens right on top of the fil…

Read Article

Shifty dates in Microsoft Excel

By

Microsoft has used two different starting points on the calendar for calculating dates in different versions of their Excel spreadsheet program. Really. Microsoft explains the difference here. One version used 1 January 1900 for serial day numbering, the other used 1 January 1904. Of course, up to…

Read Article

It rains pretty regularly, in the shell

By

In a 2-article series here on The Linux Rain last May (part 1 and part2) I described how I used AWK to clean up rainfall data for my home town in Tasmania. The result was a file called rain3 with rainfall totals for each of the 36525 days from 1 January 1916 to 31 December 2015: In this article I…

Read Article

Tweaking uniq -c

By

I often sort lists on the command line and get the frequencies of listed items with the command chain sort | uniq -c. For example, suppose I have a list of "brown" surnames in a file called demo: OK, so there are 7 Brauns in the list, 3 Brouns, and so on. But notice the indentation of…

Read Article

Quick - what time is it in Singapore?

By

If you want to know the local time around the world, Linux has options ranging from plain to gorgeous. The plainest one is the tzselect command, which offers choices in a terminal that lead you to the local time in a single region. Middling-pretty is gworldclock, a little GUI window that can be…

Read Article

A script to find empty fields in a table

By

It's pretty easy to see which fields are empty in the tab-separated table demo (below). The 2nd and 4th field, Col2 and Col4, have no visible characters at all in the rows below the header line: That was simple, but what if the table is huge, with lots of fields and records? Eyeballing for fields…

Read Article

How to tidy copied PDF text with a CoPa script

By

The image below shows a small, demonstration PDF: When I highlight the text in the PDF, only the paragraphs and their internal spaces go to the X, or primary clipboard: When I middle-click-paste from the primary clipboard into a text editor, each line of text in the PDF appears on a new line,…

Read Article

Finding unmatched braces (brackets)

By

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

News Elsewhere

Linuxtoday.com

Tech Comics: Great Results

 Datamation: Sometimes what's considered "great results" can be remarkably less than thrilling.

5 DevOps leadership priorities in 2018

Five key areas DevOps leaders and teams should strive to improve in the New Year.

adcli - Easy Way To Join RHEL/CentOS System To Active Directory Domain

adcli is a command line tool that help us to integrate or join Linux systems such as RHEL & CentOS to Microsoft Windows Active Directory (AD) domain.

Command line fun: Insult the user when typing wrong bash command

Nixcraft: You can configure sudo command to insult user when they type the wrong password.

How to Install Fedora 27 Alongside With Windows 10 or 8 in Dual-Boot

This tutorial will guide you on how to install Fedora 27 Workstation in dual boot with Microsoft Windows 10 Operating System pre-installed on a BIOS firmware machine.

Record and Share Terminal Session with Showterm

You can record a terminal session with any screen recording program, but Showterm for Linux makes it very easy to record and embed on a site. Here???s how it works.

You can record a terminal session with any screen recording program, but Showterm for Linux makes it very easy to record and embed on a site. Here???s how it works.

How To Use YUM History Command To Rollback An Updates In RHEL/CentOS Systems

Yum history command allows administrator to rollback the system to a previous state on CentOS and RHEL Systems.

How to Install Icinga 2 Monitoring Tool on Debian 9.2

HowToForge: In this guide we will discuss how to install and configure the latest version Icinga 2 web monitoring tool

Slax Linux Distro Gets New Release After Two Years, Drops Slackware for Debian

Slax 9.2.1 is now available for download as the latest stable release of the Linux distro

GamingOnLinux Latest Articles

Colony building sim 'RimWorld' is now in Beta, with lots more content on offer

Tags: Strategy, Steam, Humble Store, Simulation, SurvivalTo say the RimWorld [Humble Store, Steam, Official Site] Beta is a big update might be a…

Fun free to play vehicle combat game 'Robocraft' updated with a new major building tool

Tags: Steam, Free Game, ActionI greatly enjoyed my time with the free to play vehicle combat game Robocraft [Steam], but the actually building wasn't…

Stardock is planning to release 'Star Control: Origins' on Linux

Tags: Adventure, Action, Strategy, RPG, SteamIt seems Ashes of the Singularity won't be the only Stardock game coming to Linux, as they've said Star…

Among the Sleep - Enhanced Edition, a free update to a great horror game

Tags: Horror, Indie Game, GOG, SteamAmong the Sleep - Enhanced Edition [GOG, Steam] is one I missed due to the stress of moving, which released at…

Friday Livestream with Samsai at 6 PM UTC!

Tags: LivestreamHey! You might not believe it but it's Friday today! And as is typical of a Friday here at GOL, we have a livestream for you! So, get…

Completely free top-down shooter CS2D is now on Steam

Tags: Free Game, Action, SteamCS2D [Steam, Official Site] is a top-down shooter heavily inspired by Counter Strike 1.6 and it's now available on…

Looks like the open-world FPS 'The Signal From Tölva' is now on Linux

Tags: Action, Open World, FPS, Steam, Indie GameThanks to a user comment on one of our older articles, we've been informed that The Signal From…

The developer of Siralim and Siralim 2 has blogged about supporting multiple platforms

Tags: MiscWhile not too in-depth on the technical side of things, the developer of Siralim [Official Site] and Siralim 2 [Official Site] has blogged…

Jump Gunners is a pretty hilarious action platformer now on Linux

Tags: Steam, Action, Platformer, Local co-opIn Jump Gunners [Steam, Official Site], as the name might suggest, you use your gun to propel you around…

Planet Nomads is about to get a lot more interesting

Tags: Steam, Early Access, Sandbox, Survival, Adventure, GOGPlanet Nomads [GOG, Steam, Official Site], the Early Access singleplayer sci-fi sandbox…

GOG now has 'West of Loathing' on their store, including a Linux version

Tags: GOG, DRM Free, Adventure, Comedy, RPGThe comedy adventure game West of Loathing [Official Site] is now available DRM free on GOG and they have…

Build a fleet and go to war in Battlevoid: Sector Siege, now out with Linux support

Tags: Strategy, Steam, Indie GameBattlevoid: Sector Siege [Steam] is a real-time strategy game about spaceships battling it out, it's now out with…

Tannenberg, the standalone expansion to Verdun, explodes into Early Access

Tags: FPS, Action, Early Access, SteamThe Eastern Front just got a little bit busier. The standalone expansion to the WW1 FPS pits Russians versus…

Crusader Kings II: Jade Dragon now available, my thoughts on all the kowtowing and tribute

Tags: DLC, Review, Steam, StrategyThe latest expansion to the medieval grand strategy game focuses on the East and the splendors of China. I had the…

Europa Universalis IV: Cradle of Civilization now available, here’s some thoughts

Tags: DLC, Review, Steam, StrategyThis ambitious DLC adds new shiny toys to nearly every nation of the Near East. I did my best to navigate religious…