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

Articles found under tag: awk

BASH drivers, start your engines

By

There's always more than one way to do a job in the shell, and there may not be One Best Way to do that job, either. Nevertheless, different commands with the same output can differ in how long they take, how much memory they use and how hard they make the CPU work. Out of curiosity I trialled 6…

Read Article

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

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

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

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

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

News Elsewhere

Linuxtoday.com

Linux mv Command Explained for Beginners (8 Examples)

HowToForge: Just like cp for copying and rm for deleting, Linux also offers an in-built command for moving and renaming files.

PlayOnLinux For Easier Use Of Wine

PlayOnLinux is a free program that helps to install, run, and manage Windows software on Linux.

My Linux story: Coding not required

opensource.com: How an educator built a successful career teaching open source.

Two great uses for the cp command: Bash shortcuts

Learn how to streamline the backup and synchronize functions of the cp command.

Realistic racing game 'DRAG' coming to Linux next month, built on Linux and it looks astonishing

GamingOnLinux: The game engine is custom built under Linux too.

How to deploy TripleO Overcloud (Controller , Compute) on CentOS 7 VMs

A complete Guide on how to deploy overcloud (Controller and Compute Nodes) on Virtual machines hosted on KVM hypervisor.

Top 20 OpenSSH Server Best Security Practices

 nixcraft: OpenSSH is the implementation of the SSH protocol.

10 bad DevOps habits to break

Nip these bad DevOps practices in the bud now for greater success in 2018.

How to create outlines in Linux with TreeLine

Organize your work with TreeLine, a flexible tool for creating outlines on the Linux desktop.

GamingOnLinux Latest Articles

Friday Livestream with Samsai at 6 PM UTC!

Tags: LivestreamHello there, potential viewer! I am here to notify you that you have a one-time opportunity* to participate in an adventure unlike…

FPS 'Interstellar Marines' is still alive and updated, finally fixes their Wargames mode timer on Linux

Tags: Action, FPS, Indie Game, Early AccessInterstellar Marines [Steam] was one of the most promising FPS games in a long time, until they basically…

Urban sandbox game 'Voxel Turf' adds in boats, hovercraft and more optimizations

Tags: Steam, Indie Game, Action, City Builder, SimulationVoxel Turf [Steam] is a very sweet mix of city-building and first-person action built…

The crazy action RPG 'Super Cane Magic ZERO' now works properly on Linux

Tags: Action, RPG, Steam, Indie Game, Early AccessI recently wrote about Super Cane Magic ZERO [Steam] getting a huge update and how the Linux…

Balloonatics, an action-packed shooter where you pilot a floating basket is coming to Linux

Tags: Action, Steam, Early Access, Coming Soon, Indie GameBalloonatics [Steam, Official Site] certainly gets some bonus points for being unique. A…

Top-down shooter 'Geneshift' has a major update with a new progression system

Tags: Steam, Indie Game, Early Access, ActionGeneshift [Steam, Official Site], the pretty good top-down shooter that has some fun vehicle action was…

Realistic racing game 'DRAG' coming to Linux soon, built on Linux and it looks astonishing

Tags: Racing, Indie Game, Coming SoonI've been in contact with one of the people behind DRAG, a fantastic looking racing game which will come to…

Nearly six years after the Kickstarter, Stainless Games claim Carmageddon is still coming to Linux

Tags: EditorialAnother year has passed and it's now nearing six years since the Carmageddon: Reincarnation Kickstarter that was supposed to have a…

The big Wine 3.0 release is now officially available

Tags: WineGood things come to those who wait, like a fine Wine. Today the Wine team has officially release the next stable version Wine 3.0 [Official…

Slay the Spire fuses together a roguelike with a card game, it's rather fun

Tags: Early Access, Card Game, Roguelike, Strategy, RPG, Initial ThoughtsWhat do you get when you throw cards at a roguelike? Slay the Spire [Steam,…

OVIVO is a platformer with some rather unusual mechanics, it's also now on Linux

Tags: Platformer, Steam, Indie Game, ReviewI've played many platformers in my time and OVIVO [Steam, Official Site] stands quite tall as something…

Phantom Signal is an interesting Strategy game with Tower Defense mechanics

Tags: Strategy, Steam, Indie Game, Tower Defense, ReviewPhantom Signal [Steam] is a new Strategy game with Tower Defense mechanics that released this…

The original 'The Jackbox Party Pack' is now in Beta for Linux, that makes all of them now

Tags: Casual, Party Game, Steam, BetaThe Jackbox Party Pack [Steam] joins it's newer siblings in gaining an Beta version for Linux, so that makes all…

The current Humble Monthly Bundle has Civilization VI and some DLC for Linux gamers

Tags: Humble Store, Game BundleJust a quick tip this one: The Humble Monthly Bundle is quite hit and miss for Linux gamers, but the current one…

Cook, Serve, Delicious! and Cook, Serve, Delicious! 2!! are now on GOG with Linux support

Tags: GOG, DRM Free, SimulationThink you're a good enough cook to run your own restaurant? Now's your chance to prove it as Cook, Serve, Delicious!…