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 build a WiFi picture frame with a Raspberry Pi

Use a Raspberry Pi to DIY a digital photo frame that streams photos from the cloud.

Six years ago Steam was released for Linux - Happy Birthday

Happy official birthday to the Steam client for Linux

Ethical Hacking, Ubuntu-Based BackBox Linux Is Now Available on AWS

The BackBox Linux operating system promises to offer Amazon Web Services users an optimal environment for professional penetration testing operations

How to Flush DNS Cache on Ubuntu 18.04 LTS

The following guide shows you how to Flush the DNS Cache in Ubuntu 18.04

6 Ways to Open Folders in Ubuntu 18.04 LTS

Opening folders in Ubuntu is one of the basic tasks you will perform as a regular Ubuntu user.

How To Change HostName In Linux?

2DayGeek: Simple methods to change hostname in Linux.

Run Particular Commands Without Sudo Password In Linux

ostechnix: This brief tutorial describes how to run particular commands without sudo password in Unix-like operating systems.

Load Testing Web Servers with Siege Benchmarking Tool

Knowing how much traffic your web server can handle when under stress is essential for planning future grow of your website or application.

Some pretty useful YUM tips & tricks

Yum is the default package manager for RPM packages on RHEL & CentOS.

GamingOnLinux Latest Articles

Ravenfield, the single-player FPS with large-scale battles has a new release out

Tags: FPS, Early Access, Action, Indie Game, Unity, SteamMore FPS news for you this weekend, with the single-player Ravenfield having another great…

The unique FPS 'Shotgun Farmers' is leaving Early Access next month

Tags: Action, Indie Game, Unity, FPS, Steam, Early AccessShotgun Farmers, by far one of the most unique FPS games I've played in a long time is due…

The first Steam Play update for this year is out with Proton 3.16-7 beta

Tags: Steam Play, Valve, Steam, BetaValve have pushed out a Steam Play beta update with Proton 3.16-7 now available for testing. Lots of fixes! Not…

Wine 4.2 is officially out with plenty of game fixes

Tags: WineThe Wine team are having a busy year once again, with the second development release for Wine 5.0 out as the bottle for Wine 4.2 is now…

A look at what games and bundles are on sale ahead of the weekend

Tags: Game Sale, Game BundleAh yes, another weekend is about to crash into our lives and so you're looking for a new game to sink some hours into.…

Dungeons 3 has a new unexpected DLC out today, adding in another campaign

Tags: Strategy, DLC, Steam, Humble Store, GOGI have to hand it to Realmforge Studios and Kalypso Media Digital, they've supported Dungeons 3…

The 2D beat 'em up 'Tunche' is another game funded on Kickstarter and heading to Linux

Tags: Beat 'em up, Crowdfunding, Indie Game, Coming SoonAnother bit of positive crowdfunding news for you today, as Tunche, the 2D beat 'em up with…

Forgiveness, a new escape room style puzzle game is coming to Linux this month

Tags: Coming Soon, Indie Game, Puzzle, SteamWith themes based around the seven deadly sins with psychological-horror vibes, Forgiveness, a new escape…

Eastshade, the peaceful open-world exploration game is still coming to Linux

Tags: Coming Soon, Delayed, Steam, Indie Game, Open World, Exploration, Itch.ioWhile the Linux version of Eastshade sadly didn't arrive at release,…

Apparently Valve are working with Easy Anti-Cheat to get support in Steam Play (updated: yup)

Tags: Valve, Steam, Steam Play, WineUpdate: Turns out, this is true. As a Valve developer did reply to a user on the VKx Discord to say "they're…

Fancy working on Wine to help push Steam Play? CodeWeavers are hiring

Tags: Wine, Steam Play, JobsCodeWeavers, the company that supports Wine development that's working with Valve on Steam Play are looking to recruit…

Littlewood, the peaceful building RPG has been fully funded and it's on the way to Linux

Tags: Crowdfunding, Indie Game, Coming Soon, RPGUnlike a lot of RPGs, Littlewood actually takes place after all the action has been done. It's your…

Sid Meier's Civilization VI: Gathering Storm is out with Linux support as expected

Tags: Strategy, DLC, Aspyr Media, Humble Store, SteamSid Meier's Civilization VI: Gathering Storm, the massive new expansion has arrived and as…

Game porter and Steam Play dev Ethan Lee is running a crowdfunding campaign

Tags: CrowdfundingNintendo's USB GameCube adapter for the Wii U and Switch could soon work on Linux, Mac and Windows if this crowdfunding campaign…

We. The Revolution, a unique looking strategy game set during the French Revolution will be on Linux

Tags: Strategy, Coming Soon, GOG, SteamFor those after a strategy game that certainly looks unique, We. The Revolution is bringing the blood-soaked…