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

Articles found under tag: scripts

AWK and a rainfall time series - Part 2

By

In part 1 of this article I showed how I used AWK on the command line to work up daily rainfall data for my home town, Ulverstone in Tasmania. I wasn't ready to analyse the data, because there were quite a few missing-data days. Some were part of accumulated-total series, where the rainfall total…

Read Article

AWK and a rainfall time series - Part 1

By

AWK is my tool of choice for processing plain-text data, so when I wanted to look closely at daily rainfall data for my home town, I fired up a terminal. In this two-part article I explain how the rainfall data were beaten into shape, mainly with AWK, so I could do my analysis. The commands shown…

Read Article

BASH a block of bytes

By

I was preparing a slide presentation and wanted to show a block of random 8-bit bytes, like this: Naturally I didn't just type out that block of text on a slide, which would have taken maybe 10 minutes, or copy and modify some byte-text I found online. Of course not. Instead I spent hours dreaming…

Read Article

How to build and edit LibreOffice dictionaries

By

When writing or editing scientific-type text in LibreOffice Writer, I rely a lot on its spellchecker. Unfortunately, the scientific terms I'd like to check aren't in the default dictionaries behind LibreOffice's spellchecking routine. There are two ways out of this dilemma. The first is to deal…

Read Article

The buttons of YAD

By

I use the YAD dialog program quite a lot in my shell scripts. Written and maintained by Victor Ananjevksy, YAD is easy to use and has dozens of handy options. In previous Linux Rain articles demonstrating YAD (here, here and here), I used only the default YAD buttons, "Cancel" and…

Read Article

grep vs AWK vs Ruby, and a uniq disappointment

By

In my data-cleaning work I often make up tallies of selected individual characters from big, UTF-8-encoded data files. What's the best way to do this? As shown below, I've tried grep/sort/uniq, AWK and Ruby, and AWK's the fastest. The trials also revealed an unexpected problem with the uniq program…

Read Article

Scripting an arithmeticker

By

I've just built my own GUI calculator (script below). OK, you're probably thinking "WHY? There are plenty of perfectly good GUI calculators for Linux. Why build another one?" And my answer is "Because the available calculators are way too powerful and don't do what I want…

Read Article

Tips for tpp and patat

By

You might be surprised to learn that there are programs for running presentations in a terminal. No, I don't mean opening PowerPoint or Impress slides one after the other, as images in a frame-buffered console. I mean presenting slides coded for the terminal, in a terminal. Interesting idea? It…

Read Article

Scottish Country Dancing stats

By

My wife has been in the same Scottish Country Dancing group for many years, and back in 2005 she began keeping a record of the dances done at each meeting. She lists a fair bit of information in her "dances done" spreadsheet (screenshot below). She recently asked me "Would it be…

Read Article

A script to log what my GPS tells me

By

I carry a Garmin Etrex 10 when I go bug-collecting. It's a handheld GPS receiver without many frills, and I only use it to record the latitude and longitude of each of my collecting sites as a waypoint. At the start of a field trip I delete all previous waypoints. When I do this, the trip's…

Read Article

News Elsewhere

Linuxtoday.com

A Useful Android App To Browse Arch User Repository(AUR)

ostechnix: AURdroid is a free Android that allows Arch Linux users to browse the AUR (Arch User Repository) from the mobile phone, tablets or any Android devices.

Linux 4.12 rc3

Linus Torvalds: Hey, things continue to look good, and rc3 isn't even very big.

Peppermint 8 Linux OS Released, It's Based on Ubuntu 16.04.2 LTS with Linux 4.8

Peppermint 8 is based on the Ubuntu 16.04.2 LTS (Xenial Xerus) operating system and the HWE (hardware enablement) Linux 4.8 kernel and graphics stacks from Ubuntu 16.10 (Yakkety Yak)

How To Configure SAMBA Server And Transfer Files Between Linux & Windows

LinuxAndUbuntu: File transfer between Linux and Windows can be done using SAMBA which is an open source software suite that provides seamless file and print services to SMB/CIFS clients, allowing interoperability between Unix/Linux based system and Windows-based system.

How to Disable Shutdown and Reboot Commands in Linux

Tecmint: Certain Linux distros such as Ubuntu, Linux Mint, Mandriva just to mention but a few, make it possible to reboot/halt/shutdown the system as a normal user, by default.

5 laws every aspiring DevOps engineer should know

Good engineers become great engineers when they follow these rules.

Quick Guide: How to Linux get ip address

This post will provides a quick guide how to Linux get ip address, subnet and related networking information.

How to Build a Custom Kernel on Ubuntu

MakeTechEasier: Building a custom Linux kernel sounds terrifyingly difficult, but it's really not that hard.

How to use sed to find and replace text in files in Linux / Unix shell

Nixcraft: How do I use the sed command to find and replace on Linux or UNIX-like system?

GamingOnLinux Latest Articles

Slime-san, an incredibly fast-paced platformer that takes place inside a worm

Tags: Steam, Platformer, ReviewA bit overdue, but today I checked out Slime-san [Steam, Official Site], an incredibly fast-paced platformer with a…

Questioning my life choices playing 'Grab the Bottle'

Tags: Puzzle, Steam, Indie Game, CasualGrab the Bottle [Steam] from developer Kamina Dimension is a really weird snake-like game about some weird…

Shadow of Mordor on AMD Ryzen CPU suffers from a performance hit due to non-optimal thread scheduling

Tags: Benchmark, Hardware, AMD, Feral InteractiveWhile doing some comparative benchmarks between my RX 470 and GTX 1060 on a Ryzen 1700 CPU and an…

Stardock CEO asking to see interest in Ashes of the Singularity: Escalation on Linux with Vulkan

Tags: Steam, Strategy, VulkanAshes of the Singularity: Escalation [GOG][Steam][Official Site] will come to Linux if Stardock see enough requests for…

Darkest Dungeon’s expansion, The Crimson Court, set to release June 19th

Tags: DLC, Dungeon Crawler, Roguelike, RPGThe very brutal and fun dungeon crawler will get its first expansion quite soon. Thematically about…

BlindQuest, an interactive audio novel, is looking for votes for Steam Greenlight

Tags: Adventure, Visual Novel, Steam, GreenlightSetting itself apart from the majority of visual novels by focusing on the player’s sense of…

Bounty Train, a game about the Wild West and trains, is set to come to Linux

Tags: GOG, Simulation, Steam, StrategyWith detailed equipment and management aspects, Bounty Train [Official Site] also has plenty of thrills and…

Friday Livestream with Samsai at 5 PM UTC!

Tags: LivestreamWe seem to have made it through another week, for today is Friday! You now have a once in a week (Shovel Knight streams do not count)…

Feral announce that Dawn of War III will use both OpenGL and Vulkan

Tags: Coming Soon, Feral Interactive, Strategy, Vulkan Feral Interactive have just announced some exciting news! The Linux port of Dawn of War III…

Hyper Knights, the Medieval mix of strategy and action is now fully released, multiplayer is coming

Tags: Action, Indie Game, Steam, StrategyHyper Knights [Steam] is one of those titles I previously picked up thinking nothing of it, but it turned…

SteamVR updated with experimental Linux support for SteamVR Home

Tags: Steam, Virtual Reality Valve have pushed out another update to SteamVR, this time Linux has been given experimental support for SteamVR Home.…

Wine 2.9 released with support for Direct3D tessellation shaders

Tags: WineWine 2.9 is now officially available and it's a very interesting one. Fantastic work from the Wine developers. Highlights:Support for…

Planet Nomads officially lands into Early Access

Tags: Early Access, GOG, Initial Thoughts, Sandbox, Steam, SurvivalPlanet Nomads [Steam, Official Site, GOG], the rather fancy looking sandbox…

Some thoughts on possessing dead bodies MidBoss, now on Linux as a day-1 release

Tags: Steam, Indie Game, Roguelike, ReviewI've been playing a bit of MidBoss [itch.io, Steam, Official Site], a new roguelike from Kitsune Games with…

The Culling survival game still broken, despite the attempted fix in the latest patch

Tags: Action, Early Access, Indie Game, Steam, Survival Despite the developers patching The Culling [Steam] today, which claims it addressed the…