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

Articles found under tag: sed

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

How to tidy copied PDF text with a CoPa script

By

The image below shows a small, demonstration PDF: When I highlight the text in the PDF, only the paragraphs and their internal spaces go to the X, or primary clipboard: When I middle-click-paste from the primary clipboard into a text editor, each line of text in the PDF appears on a new line,…

Read Article

Scottish Country Dancing stats

By

My wife has been in the same Scottish Country Dancing group for many years, and back in 2005 she began keeping a record of the dances done at each meeting. She lists a fair bit of information in her "dances done" spreadsheet (screenshot below). She recently asked me "Would it be…

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

DMS to DD to KML with AWK and sed

By

In a 2014 Linux Rain article I describe a fast 'points plotter' for Google Earth. First I copy a list of latitude/longitudes (lat/lons) from a spreadsheet to the clipboard, then I launch a shell script with a keyboard shortcut. The script builds a KML file from the copied list and opens the KML for…

Read Article

News Elsewhere

Linuxtoday.com

Optimize JPEG/JPG Images in Ubuntu with Jpegoptim

Learn how you can install the command line utility Jpegoptim on Ubuntu.

How To Automatically Disable Touchpad When Typing In Ubuntu

Three ways to automatically disable Touchpad when typing in Ubuntu operating system and its variants like Linux Mint.

Maestral Is A New Open Source Dropbox Client For Linux And macOS

Maestral is a new open source Dropbox client for macOS and Linux, that's currently in beta.

GLava - OpenGL audio spectrum visualizer for desktop windows or backgrounds

GLava is an OpenGL audio spectrum visualizer for Linux.

Beginner's guide on how to git stash :- A GIT Tutorial

Git Stash allows us to keep aside the current working directory & provides us with a clean working directory.

Shrinking Linux Attack Surfaces

LinuxJournal: Often, a kernel developer will try to reduce the size of an attack surface against Linux, even if it can't be closed entirely.

How to Find Out Top Directories and Files (Disk Space) in Linux

As a Linux administrator, you must periodically check which files and folders are consuming more disk space.

How to Install and Use WP CLI on Linux

Learn to install the WordPress Command Line Interface (WP-CLI) on Linux.

How to Install Snap Applications in Arch Linux

 MakeTechEasier: Snap applications are not available for Arch Linux by default

GamingOnLinux Latest Articles

Songs of Syx, a city-builder with empire management, tactical battles and RPG elements

Tags: City Builder, Strategy, Upcoming, Indie GameHere's a fun recent discovery, Songs of Syx an in-development title from Swedish developer Jakob de…

The six-degree-of-freedom shooter "Overload" has a new Community Level Pack offering a fresh challenge

Tags: Action, Indie Game, DLC, Humble Store, GOG, SteamOverload is possibly the best six-degree-of-freedom shooter I've played in the past few years,…

Interested in Google's Stadia game streaming service? We have a few more details now

Tags: Game Streaming, GoogleWith Google's game streaming service Stadia inching closer, we have some more information to share about it. Part of…

Dota Underlords has another update out, this one changes the game quite a lot

Tags: Valve, Steam, Early Access, Strategy, UpdateValve continue to tweak Dota Underlords in the hopes of keeping players happy, this mid-Season…

The merciless roguelike "Jupiter Hell" goes Vulkan, with another free demo weekend now up

Tags: Roguelike, Demo, Early Access, Upcoming, SteamJupiter Hell from ChaosForge is the successor to DoomRL (Doom the roguelike, now "DRL" after…

The dark strategy RPG "Vagrus - The Riven Realms" is doing well, quite an experience to play

Tags: Indie Game, Early Access, Alpha, Crowdfunding, RPG, Strategy, UnityCurrently in "Open Access" on Fig, a hybrid Early Access/Crowdfunding model,…

The strange real time strategy adventure "Hive Quest" is now on Kickstarter

Tags: Indie Game, Unity, Crowdfunding, Upcoming, Strategy, ExplorationLove insects and other creepy crawlies? Hive Quest might be a game you will…

Strategy game "ATRIUM" released recently, it's pretty much the game Carcassonne

Tags: Board Game, Strategy, Itch.io, Steam, Indie Game, UnityCarcassonne is that you? Well if you want to play something almost the same, ATRIUM just…

Tower Defense game "Elemental War" leaves Early Access today

Tags: Tower Defense, Strategy, Steam, Indie Game, New ReleaseLeaving Early Access today after nine months with a fresh update is Elemental War, a…

Open-world sandbox adventure game "TerraTech" now has a co-op campaign for up to 4 players

Tags: Adventure, Indie Game, Sandbox, Open World, Steam, Humble Store, UpdateThis is awesome. TerraTech is actually a really fun game for those who…

Chapter 7 of Higurashi When They Cry Hou is now out with Linux support

Tags: Visual Novel, New Release, GOG, SteamAfter waiting a whole year, the seventh chapter of the Higurashi When They Cry Hou is now available with…

Looks like Valve are developing another new game, something to do with "Citadel"

Tags: Speculation, Valve, Steam, VideoWarm up that cup of speculation, as it appears Valve are working on another game that seems to be going by the…

To celebrate the 50th anniversary of the Apollo 11 moon landing, Steam has a sale on

Tags: Steam, Game SaleLookout! Another sale is approaching! This time it's Valve's turn, with Steam having a space themed sale for the 50th…

The Chaos Space Marines have arrived in Warhammer 40,000: Gladius

Tags: DLC, GOG, Steam, New ReleaseToday Proxy Studios and Slitherine have released the latest DLC for the turn-based strategy game Warhammer 40,000:…

Ready for another beautiful hidden object puzzler? Queen's Quest 5: Symphony of Death is out

Tags: Puzzle, Hidden Object, Steam, New Release, CasualQueen's Quest 5: Symphony of Death from Brave Giant LTD and Artifex Mundi has released today,…