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

Articles found under tag: grep

How to deal with NBSPs in a terminal

By

A non-breaking space (NBSP) is a special kind of whitespace. It's an invisible signal that tells a text-processing program to avoid replacing that space with a linefeed or carriage return. For example, if you wrote "2 kg" in LibreOffice Writer and didn't want the "2" to be at…

Read Article

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 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 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

Scripting a DNA sequence viewer

By

SANITY WARNING: Please don't read this article unless you're a compulsive shell scripter, like me. Seriously. There are some excellent FOSS sequence viewers in the distro repositories, with great GUIs and lots of features. Why would you want to build a less capable viewer that only works in a…

Read Article

Hunting gremlin characters

By

When cleaning UTF-8 text files I sometimes come across invisible characters that I call 'gremlins'. These aren't the usual non-printing characters, like whitespace and (horizontal) tab, which are non-printing characters I expect to find in the plain text files I work with. Gremlins are weird things…

Read Article

Proofreading for illusions with grep and AWK

By

Lexical illusions are very hard to find when proofreading. The most common lexical illusion is a duplicated word, as in this well-known example: A lexical illusion: many people are not aware that the the brain will automatically ignore a second instance of the word 'the' when it starts a new 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

5 command-line games for sysadmins

If you're living life at your terminal emulator anyway, why not have a little fun while you're there #EnableSysadmin

Create & manage docker hosts with Docker Machine on VirtualBox

Docker Machine is a tool that let us install Docker Engine on virtual hosts on various platforms, on local environment as well on cloud.

How to Set Up RVM on Debian 10 Buster

If you plan on doing any sort of Ruby development, RVM is a must.

How to Enable Dynamic Transparency Ubuntu

MakeTechEasier:Even though it was removed, you can re-enable dynamic transparency on your Ubuntu PC with the GNOME desktop environment with a simple extension.

How to use Gnome shell's secret screen recorder

Learn how to use a Gnome shell's secret screen recorder.

How To Upgrade Everything Using Topgrade CLI Utility In Linux

ostechnix: The Topgrade utility will upgrade everything in Linux and Unix operating systems.

The E3 2019 Linux gaming round-up

GamingOnLinux: There was actually more from E3 2019 for Linux than I expected

Accessing remote desktops

Need to see what's happening on someone else's screen?

GamingOnLinux Latest Articles

The perils of crowdfunding for Linux games: Eco edition

Tags: Crowdfunding, EditorialWhen crowdfunding games, there's always a risk that something will go wrong. Sometimes games get cancelled, sometimes…

Humble Store have a nice City Builder sale going on this weekend

Tags: Humble Store, Game Sale, City BuilderJust a quick tip before it's over, Humble Store are currently doing a sale with a City Builder theme and…

Dota Underlords from Valve is already quite addictive and they're improving it quickly

Tags: Strategy, Beta, Steam, Valve, Initial ThoughtsWith Dota Underlords available for testing, I've now taken a look at it (thanks Scaine!) and so…

NetherWorld, an impressive looking and weird narrative pixel-art action game is coming to Linux

Tags: Pixel Graphics, Action, Steam, Indie Game, UpcomingCurrently in development by Hungry Pixel, NetherWorld has a pretty impressive pixel-art…

DXVK 1.2.2 released with performance improvements and bug fixes

Tags: Wine, VulkanDXVK, the incredible project that provides a Vulkan-based layer for D3D11 and D3D10 games run with Wine has another release now…

The Expression Amrilato, a Yuri Visual Novel that teaches some Esperanto has a same-day Linux release on GOG

Tags: Visual Novel, GOG, DRM-FreeCurrently stuck in release limbo on Steam, 'The Expression Amrilato' has been released on GOG today with full Linux…

GOG are giving away Toonstruck during the Summer Sale Festival finale

Tags: GOG, Free Game, Giveaway, DRM-FreeThe GOG Summer Sale Festival is ending on Monday June 17th at 10 PM UTC, so GOG are now giving away copies of…

The latest Volcanoids update sounds amazing, lets you directly pilot your drillship

Tags: Steam, Early Access, Indie Game, Steampunk, Unity, SurvivalVolcanoids, the steampunk survival game where your base of operations is a massive…

Skellboy looks like a very sweet action-RPG where you swap body parts

Tags: Action, RPG, Steam, UpcomingSkellboy, a recent discovery being developed by UmaikiGames and published by Fabraz (Slime-San, Planet Diver) looks…

Unique racing game 'Vector 36' adds online multiplayer in the latest update and a free weekend

Tags: Racing, Steam, Indie Game, UpdateVector 36 is a racing game that's quite unusual, as you're piloting a Skimmer across the surface of Mars. …

Relic Hunters Legend to enter Alpha later this month, includes Linux support

Tags: Action, Alpha, Indie Game, UpcomingRelic Hunters Legend, the crowdfunded shoot and loot RPG from Rogue Snail is gearing up for the Alpha…

Hard sci-fi space game 'Rings of Saturn' is now doing an Early Access crowdfunding mix on itch

Tags: Indie Game, Early Access, Crowdfunding, Itch.io, Simulation, Godot EngineRings of Saturn, a hard sci-fi space simulation game made with the…

Starbound's massive 1.4 "Bounty Hunter" update is out now

Tags: Indie Game, Humble Store, GOG, Steam, Sandbox, SurvivalAfter a long wait, with this being the first update to Starbound since October last…

SkateBIRD has flown past the Kickstarter goal, Linux demo now available

Tags: Sports, Casual, Indie Game, Community, Crowdfunding, DemoGet ready to explore a bird-sized skatepark, as SkateBIRD has not only flown right…

Valve release a new stable Steam Client from all the recent Beta builds, nice fixes for Linux

Tags: Steam, UpdateValve have once again gathered all the new features and fixes from a bunch of recent Beta builds and pushed it out to everyone,…