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

TLP - An Advanced Power Management Tool That Improve Battery Life On Linux Laptop

2DayGeek: TLP is a free opensource advanced power management tool that improve your battery life without making any configuration change.

Using PPA in Ubuntu Linux [Complete Guide]

 itsFOSS: An in-depth article that covers almost all the questions around using PPA in Ubuntu and other Linux distributions.

10 Best Native Linux Games

LinuxConfig: Whether you want something free to play or you're looking for invest in a long term favorite, there are plenty of amazing options on Linux.

Vivaldi 2.2 Introduces Picture-in-Picture, Smarter Tab Management and Navigation

The Vivaldi 2.2 update introduces even more goodies to make you consider Vivaldi as your default web browser

How to install Redis on a Raspberry Pi using Docker

Using Docker enables us to install the latest releases of Redis long before they are available in the Raspbian package repository.

5 resolutions for open source project maintainers

No matter how you say it, good communication is essential to strong open source communities.

Top 5 configuration management tools

Learn about configuration management tools and figure out which will work best for your DevOps organization.

Patch into The Matrix at the Linux command line

Recreate the classic look and feel of everyone's favorite 1990s sci-fi movie code scroller with cmatrix.

FreeBSD 12 released: Here is how to upgrade FreeBSD 11 to 12.

Nixcraft: The 12th version of the FreeBSD has been released, bringing updated software hardware support.

GamingOnLinux Latest Articles

Preview: Jupiter Hell, the modern roguelike and spiritual successor to DRL (Doom the roguelike)

Tags: Preview, Video, Steam, Indie Game, RoguelikeJupiter Hell is a roguelike I'm following with great excitement, it's serving a the spiritual…

The Tyranids are coming to Warhammer 40,000: Gladius in January

Tags: DLC, Strategy, Coming Soon, GOG, Humble Store, SteamWhile Warhammer 40,000: Gladius is a pretty good strategy game, it did feel somewhat…

Preview: Overland, the squad-based survival strategy game is to release in full next year

Tags: Update, Indie Game, Early Access, Strategy, PreviewOverland, a stylish strategy game where every single step counts is due for a full release…

The impressive ATOM RPG is to leave Early Access on December 19th

Tags: Indie Game, RPG, Early Access, SteamAfter little over a year in Early Access after a successful Kickstarter campaign, the surprisingly…

VK9, the project that aims to support Direct3D 9 over Vulkan has hit another milestone

Tags: VulkanThe developer of VK9, another rather interesting compatibility layer has advanced further with the announcement of another completed…

The lovely aquarium building game Megaquarium just had a big update

Tags: Steam, Humble Store, Indie Game, Simulation, StrategyTwice Circled are adding in plenty of new features to Megaquarium as promised, with a…

The KKnD remake using the OpenRA engine has a first release out

Tags: Open Source, StrategyKKnD, the classic strategy game is being revived and the new open source project has the first release out. Note: Much…

NVIDIA released the 415.22.01 Vulkan driver

Tags: NVIDIA, DriversYesterday, NVIDIA again updated their special beta Vulkan driver pushing it to version 415.22.01 with various improvements. This…

DXVK 0.94 is out with fixes and performance tweaks

Tags: Wine, VulkanThe Valve-funded DXVK project, which kicks over D3D11 and D3D10 to Vulkan for use with Wine has another fresh brew available.…

Wipeout inspired anti-gravity racer BallisticNG has left Early Access

Tags: Racing, Indie Game, SteamFor those who miss the glory days of Wipeout, take a look at BallisticNG which just left Early Access. Developed…

Distance, the awesome racing platformer has a new mini-campaign out

Tags: Steam, Humble Store, Indie Game, Racing, Platformer, UpdateFor those who've completed the main content of Distance you might want to grab your…

Good Company, a very stylish looking tycoon sim will support Linux

Tags: Steam, Indie Game, Unity, Strategy, SimulationGood Company, a business management tycoon sim is a recent discovery and it will be coming to…

KeeperRL had a pretty big release recently, adding in some modding support and lots more

Tags: Early Access, Indie Game, Itch.io, Humble Store, Steam, Strategy, RPG, Open SourceKeeperRL is a great little game, one that mixes in roguelike…

The excellent SC Controller gamepad tool has two fresh releases available

Tags: Apps, DriversDo not adjust your monitor, you did read the correctly. SC Controller, the excellent tool that started off just for configuring…

Discord announce a 90/10 revenue split, Discord Store will support Linux

Tags: MiscYou will be forgiven for not paying much attention to the Discord Store, since it doesn't currently support Linux. It seems that is going…