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

How to display data in a human-friendly way on Linux

NetworkWorld: Many Linux commands now have options to make their output a little easier to digest.

How to Schedule Tasks on Ubuntu 18.04 Using Crontab

Learn how to run programs at a specific time or in a given interval on Ubuntu by using the crontab

How to Install Prometheus and node_exporter on CentOS 7

Prometheus is an open source monitoring system that allows you to collect metrics from any configured target system.

How to limit CPU usage with CPULimit on Ubuntu Linux

 Learn how to limit CPU usage in Ubuntu 18.04 LTS.

How To Install Asterisk on CentOS 7

Asterisk is the most popular and widely adopted open source PBX platform that powers IP PBX systems, conference servers and VoIP gateways.

Researchers Reveal Security Vulnerabilities in Tracking Apps

eWEEK: At Defcon, security researchers revealed 37 new vulnerabilities in tracking apps that could have enabled attackers to steal information and track users.

How Netflix Secures AWS Cloud Credentials

eSecurityPlanet: At Black Hat USA, Netflix engineer explains how the streaming media giant uses cloud logs to spot security issues.

Linux 4.18 Benefits from Energy-Aware Scheduling on ARM

ServerWatch: The fourth major milestone release in 2018 for the Linux kernel was officially announced by Linus Torvalds on Aug. 12 with the general availability of Linux 4.18.

5 open source strategy and simulation games for Linux

Challenge your strategic skills and explore new worlds with these five open source games.

Challenge your strategic skills and explore new worlds with these five open source games.

GamingOnLinux Latest Articles

Boyfriend Dungeon, an action-RPG dungeon crawler where the weapons transform into people is on Kickstarter

Tags: Indie Game, Dungeon Crawler, Action, RPG, CrowdfundingBoyfriend Dungeon [Official Site] from Kitfox Games (Moon Hunters) promises a rather…

Graveyard Keeper from Lazy Bear Games and tinyBuild is out with same-day Linux support

Tags: Humble Store, GOG, Steam, RPG, AdventureGraveyard Keeper is a slightly amusing game that has you manage a medieval graveyard while facing…

Daedalic Entertainment's futuristic thriller 'State of Mind' is out with day-1 Linux support

Tags: Humble Store, GOG, Steam, Adventure, Indie Game, Cyberpunk, Unreal EngineGood stuff from Daedalic Entertainment here as they've released State…

Crazy Justice to finally enter Early Access with Linux support on August 23rd

Tags: Action, Battle Royale, Steam, Indie Game, Early Access, Unreal Engine, Free GameCrazy Justice [Steam, Official Site], the third-person shooter…

First-person grappling-hook platformer 'The Free Ones' is out with Linux support, it's pretty good

Tags: Platformer, Steam, Indie Game, Review, AdventureThe Free Ones is a first-person platformer that sees a slave escape from captivity and it's out…

Top-down 3D action-adventure game Sikanda gives you a shape-shifting weapon

Tags: Action, Adventure, Crowdfunding, Indie GameSikanda seems like a pretty interesting top-down action-adventure, one that gives you a…

Time Traveling Raptors is a 16-bit inspired action-platformer where you're trying to fix the timeline

Tags: Crowdfunding, Indie Game, Action, PlatformerTime Traveling Raptors looks all kinds of nuts, an action-platformer where you're facing people as…

Prepare to set sail as seafaring strategy game 'Nantucket' is now officially supported on Linux

Tags: Strategy, Steam, Humble Store, Indie GameAfter being in Beta since April, Picaresque Studio have now given the Linux version of the seafaring…

Isometric university management game 'UniverCity' has entered Early Access, developed on Linux

Tags: Steam, Indie Game, Early Access, SimulationUniverCity from developer Matthew Collins who develops on Linux is a new in-development university…

The Humble Jackbox Party Bundle is out, some of their games have hidden Linux beta versions

Tags: Humble Store, Game Bundle, BetaA quick tip for those who love their party games as Humble have put out the The Humble Jackbox Party Bundle. To…

Valve may be adding support for using compatibility tools for playing games on different operating systems

Tags: Valve, SteamReddit seems to be buzzing with information from SteamDB (full credit to them for finding it) showing indications that Valve…

The Linux version of Moonlighter should be out soon, in the 'last stage'

Tags: Coming Soon, Action, RPG, Rogue-lite, UnityThe action RPG Moonlighter [Official Site] seemed really interesting with the shopkeeper element to…

TANGLEWOOD is a properly retro puzzle-platformer that's now out for Linux, includes a Mega Drive rom file

Tags: Puzzle, Retro, Platformer, Steam, Indie GameBig Evil Corporation have released their puzzle-platformer that really is rather retro and not just…

2D pixel horror game 'Ellen' is looking for Linux testers of their teaser

Tags: Horror, Steam, Indie Game, Coming SoonIf you love your horror games, keep an eye on Ellen as it looks pretty spooky. Turns out Red Mount Media…

Reynard, an action RPG that mixes in some Tower Defense now has Linux support

Tags: Action, RPG, Indie Game, Early Access, Tower DefenseHyper Fox Studios [Official Site] announced today that their sweet action RPG Reynard,…