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

LibreOffice 6.2.3 Office Suite Released with More Than 90 Bug Fixes

softpedia: LibreOffice 6.2.3 is here about a month after the release of LibreOffice 6.2.2 to add another layer of bug fixes and improvements

Install The Latest OpenJDK 12, 11 or 8 in Ubuntu, Debian or RHEL Using Zulu OpenJDK Builds

LinuxUprising: Azul Systems provides tested, certified builds of OpenJDK, under the name of Zulu.

Creating SWAP partition using FDISK & FALLOCATE commands

Swap-partition holds the memory which is used in case the physical memory (RAM) is full .

HTTPie - A Modern Command Line HTTP Client For Curl And Wget Alternative

2DayGeek: Learn how to use httpie tool to make CLI interaction with web services.

How To Remove Plank Shadow On Xubuntu?

Plank is a simple dock application that is widely used by Linux users.

How to Generate a Random Number in Linux

Learn how to generate a random number from the Linux command line.

Echo Command in Linux with Examples

 Linuxize: The echo command is one of the most basic and frequently used commands in Linux.

State of enterprise open source: 5 telling stats

EnterprisersProject: How are IT leaders using open source, and what are their future plans?

Minikube: 5 ways IT teams can use it

Minikube lets you run Kubernetes on a laptop or other local machine.

GamingOnLinux Latest Articles

DragonRuby Game Toolkit, a cross-platform way to make games with Ruby

Tags: Game Dev, ToolkitNow for something a little different! Ryan "Icculus" Gordon, a name known for many Linux ports and SDL2 teamed up with indie…

You Died but a Necromancer revived you is good fun in a small package

Tags: Indie Game, Casual, Steam, Itch.io, ReviewYou Died but a Necromancer revived you may not be a name that rolls off the tongue easily but it's…

Forager is a weirdly addictive casual grinding game that has mined into my heart

Tags: Humble Store, Steam, Adventure, Pixel Graphics, Casual, ReviewI'm not usually one for games that have you endlessly wander around, collect…

Altered, a sweet looking puzzle game where you're part of the puzzle is coming to Linux

Tags: Puzzle, Indie Game, Itch.io, Steam, Coming SoonReleasing sometime this Summer, Altered looks like a rather sweet take on the puzzle genre as…

Steam Play just got two updates with 4.2-3 and 3.16-9, some great stuff included

Tags: Steam Play, Valve, SteamValve and CodeWeavers are doing some great work for Linux gaming, with Steam Play seeing two updates in a single day.…

Sid Meier's Civilization VI updated again, Linux client back in sync for cross-platform play

Tags: Aspyr Media, Steam, Strategy, Humble StoreAspyr Media managed to get the latest update to Sid Meier's Civilization VI for Linux approved and…

Post-apocalyptic roguelite shooter 'Danger Gazers' enters Early Access next week, early thoughts

Tags: Action, Indie Game, Steam, Early Access, Coming SoonI'm honestly not quite sure what to make of Danger Gazers, a top-down roguelite shooter…

Valve released a stable Steam Client update yesterday, some nice fixes in for Linux and Steam Play

Tags: Steam, ValveValve are continuing their polishing effort to make the Steam Client work better, with a load of work from the recent Beta releases…

Silly physics platformer where you swing with your tongue 'Crumble' now has a Linux demo

Tags: Platformer, Indie Game, Steam, Demo, Itch.ioIn the 3D platformer Crumble, you play as a rolling ball with a smiley face and a loose tongue. It…

Rotation looks like a promising and unique top-down shooter coming to Linux

Tags: Action, Indie Game, Steam, Coming SoonI do love a good action-packed top-down shooter but a lot of them do end up feeling a little too similar,…

Two Point Hospital's Superbug Initiative brings a new challenge system, beta now available

Tags: Update, Beta, Simulation, Humble Store, SteamThe Superbug Initiative for Two Point Hospital sees players working together across the world, to…

Rocket League has a new Rocket Pass out with a Weekly Challenges system

Tags: Steam, Humble Store, Sports, UpdateIt seems developer Psyonix is taking more inspiration from Fortnite for Rocket League with their latest…

You can now easily run the Epic Store on Linux with Lutris, Epic suggests applying for a grant

Tags: Misc, Apps, Wine, Epic GamesThanks to some effort from the team behind Lutris (and Wine of course), you can now run the Epic Store quite easily…

King Arthur's Gold, the 2D multiplayer castle siege game is now free to play

Tags: Action, Indie Game, Steam, Free GameWith some silly physics and plenty of fun to be had, King Arthur's Gold has officially gone free to play…

Turn-based tactical RPG Fell Seal: Arbiter's Mark officially releasing April 30th

Tags: Strategy, RPG, Steam, Early AccessFell Seal: Arbiter's Mark from 6 Eyes Studio and 1C Entertainment is getting ready to release in full after…