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

Articles found under tag: scripting

Tweaking uniq -c

By

I often sort lists on the command line and get the frequencies of listed items with the command chain sort | uniq -c. For example, suppose I have a list of "brown" surnames in a file called demo: OK, so there are 7 Brauns in the list, 3 Brouns, and so on. But notice the indentation of…

Read Article

Quick - what time is it in Singapore?

By

If you want to know the local time around the world, Linux has options ranging from plain to gorgeous. The plainest one is the tzselect command, which offers choices in a terminal that lead you to the local time in a single region. Middling-pretty is gworldclock, a little GUI window that can be…

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 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

Finding unmatched braces (brackets)

By

Recently I was checking for unmatched braces in a big text file with nearly half a million lines (300+ MB). Was there a closing brace for every opening brace? The text file was called 'beetle' and was actually a tab-separated table with each line divided into 77 fields. What I wanted to do was find…

Read Article

How to use flags in AWK

By

Flags in AWK are variables which are set to either true or false. They're handy for defining ranges over which AWK can act, as shown below. The AWK used here is GNU AWK 4.1.1 (gawk 4). Sometimes flags aren't needed I'll demonstrate with a simple text file called demo, which has 6 lines with 3…

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

Transposing rows and columns: 3 methods

By

Swapping the rows and columns in a table on the command line would seem to be a fairly easy thing to do. For example, with this tab-separated table (called 'tabbed') as input: get this tab-separated table ('swapped') as output: Datamash Transposing rows and columns is indeed easy if you have the…

Read Article

I think I like backreferences (sometimes)

By

Backreferences are part of the complicated and sometimes confusing world of regular expressions. The basic idea is this: you can substitute any part of a regular expression with a backslash followed by a number, so long as you surround the part to be substituted with round brackets. The command…

Read Article

Keeping emails as text files: 2 scripts

By

Most people store and organise their personal emails as individual files (messages) in folders. Those folders might be on a webmail company's servers, or in a mail client program on the user's personal computer. In both cases the emails are probably in a special email format. I'm horribly…

Read Article

News Elsewhere

Linuxtoday.com

Use Encrypted Email With any Desktop Email Client in Linux With ProtonMail Bridge

itsFOSS: The new ProtonMail Bridge application let you use encrypted ProtonMail emails with any desktop email client like Thunderbird.

How to Install Django on Ubuntu

Django is an Open-Source application framework written in Python.

How To Set Up Canonical Livepatch On Ubuntu 20.04 Focal Fossa

Canonical Livepatch was introduced in Ubuntu 16.04.

How To Run All Scripts In A Directory In Linux

Do you have a lot of shell scripts in a directory?

Huawei changes its patent story

 ZDnet: Huawei shows just how important open patents are to software development.

How to Set or Change Timezone on Debian 10

Using the correct timezone is essential for many systems related tasks and processes.

Network troubleshooting with packet captures

Capturing network traffic packets provides insight into what's happening on your network

Red Hat Names Paul Cormier President and Chief Executive Officer

Longtime Red Hat executive and open hybrid cloud visionary steps into leadership role succeeding Jim Whitehurst

Glipper - Clipboard Manager for GNOME Desktop

Glipper is a free and open-source clipboard manager built for the GNOME desktop environment

GamingOnLinux Latest Articles

City-building strategy 'Kingdoms and Castles' adds Steam Workshop support ahead of AI kingdoms update

Kingdoms and Castles, an absolute gem city-builder with some RTS elements to it just gained a highly requested feature with Steam Workshop support…

The brilliant 'Golf With Your Friends' has another massive content update

A good time for an update with ton of people at home, and what a great game to play with others too! Golf With Your Friends just recently had a…

Blending XCOM and HOMM the strategy game 'Fort Triumph' releases April 16

I'll openly admit right away my intense excitement on this one. Fort Triumph blends XCOM-styled combat with environmental interactions and Heroes of…

Dead Age 2 will bring survival, people management and turn-based combat in June

Dead Age 2 from Silent Dreams and Headup now has a release date set for June 3, along with a brand new trailer. To be clear, it's starting off in…

You can help show Gaijin demand for a Linux version of their upcoming MMO 'Enlisted'

Gaijin Entertainment have teamed up with Darkflow Software to create a new squad-based MMO called Enlisted, and they're taking a survey of what…

FOSS app 'GOverlay' for managing Linux gaming overlays adds early support for vkBasalt

GOverlay is fast becoming an incredibly useful free and open source Linux gaming application, giving you an easier time working with the MangoHud…

Tough highly-rated platformer 'LOVE' is now available on Linux with a massive update

Developer Fred Wood already had 'LOVE 2: kuso' available on Linux, however the original wasn't. That changed last week, as LOVE got a huge upgrade…

What have you been playing recently? Come tell us what you think about it

Every so often we like to have a chat with our readers, and find out what you've been really getting into lately on Linux. Since the UK is currently…

Looks like there's going to be a 'Streets of Rogue 2' and I'm definitely happy with that

Streets of Rogue released in 2019 and it's one of my absolute favourites from last year (still is this year to be honest with you, it's just that…

Vendetta Online goes free to play until June 1 giving anyone full access

Vendetta Online, something of a classic MMO space game is now free to play for everyone until June 1. Everyone will be treated as if they're a paying…

Analgesic Productions have opened up the source for their Zelda-lite 'Anodyne'

Anodyne, a Zelda-lite action adventure from Analgesic Productions from back in 2013 has today had the code opened up. Looking over the project, it's…

Sparklite has some gorgeous art, intense action and it's coming to Linux

Sparklite from Red Blue Games, an action-adventure set in a whimsical and ever-changing land, released on Steam last year and it's on the way to…

Side-scrolling open world RPG 'Regions Of Ruin' is FREE this weekend

In the mood to play something new? How about a game that blends the side-scrolling of Kingdom and adds in some open-world RPG elements too? Regions…

Steam and CS:GO just keep knocking down records as Steam hits over 24 million concurrent users

There seems to be no stopping Steam right now, Valve are on a roll with repeatedly breaking their own user records. Sound familiar? Yeah, at this…

Ubuntu 20.04 has hit Beta (as have all the extra flavours) - help make it a release to remember

Ah Ubuntu, it's like a warm cuddly blanket or a favourite jumper. There's others in your wardrobe but nothing is quite like the comfy and safe feel…

Valve and CodeWeavers now offering test builds of Proton before release with Proton 5.0-6 RC1 up

Looks like Valve and CodeWeavers are switching up how Proton is released, with a series of test builds now being provided before a new stable release…

FROGSONG is a sweet looking frog adventure where it's okay to be small

Ready for an adventure of a different sort? FROGSONG looks really quite sweet, an action adventure where you're an actual frog hopping around in a…

Humble Choice has a new bundle up for April with a bonus game if you subscribe

Humble Choice, the monthly game bundle subscription has a fresh selection ready for April and they're giving out a bonus game to people who…

Hypnotic puzzle-adventure 'Path to Mnemosyne' looks wild and it's now on Linux

Path to Mnemosyne from DevilishGames originally released back in 2018, going on to receive some quite positive reviews about the setting and visuals…

The Atari VCS is in trouble again as Rob Wyatt sues Atari for lack of payment

Rob Wyatt, the architect behind the original Xbox and someone Atari hired to work on the Atari VCS system is now suing Atari over their failure to…

X-Plane 11.50 has a first Beta with Vulkan API support which should improve performance

X-Plane 11 is a very highly rated flight simulation game and Laminar Research have been working on advancing the graphics side of it, with a first…

Cellar Door Games have officially announced Rogue Legacy 2

Rogue Legacy 2 from Cellar Door Games is a "genealogical" rogue-lite following the popular gameplay idea from the original, where you die and pass on…

Another new NVIDIA Vulkan Beta driver expands Ray Tracing support on Linux

The second update in the space of a week, NVIDIA just today put out another NVIDIA Vulkan Beta driver which further expands the Ray Tracing…

inXile Entertainment announce Wasteland 3 is delayed until August 28

Wasteland 3 was originally set for May 19 and now that some platforms have access to a Beta, inXile Entertainment have said they're now going for an…

Google announce multiple new games coming to Stadia with Gunsport a 'First on Stadia' title

As Google move ever closer to finally opening up Stadia to everyone, they continue building up their collection of streaming games with three titles…

Darkest Dungeon: The Butcher's Circus due out in May with online PvP arena battles

Darkest Dungeon: The Butcher's Circus is adding in a new twist on the harsh turn-based combat of Darkest Dungeon with arena PvP battles where you…

Terraria has now sold over 30 million copies as they get closer to the massive Journey's End update

Terraria from developer Re-Logic has now officially passed 30 million sales and shows no sign of stopping, as they approach a huge update with…

Mixing a sci-fi RPG with a Visual Novel 'Planet Stronghold 2' is out now

Planet Stronghold 2 from Winter Wolves is a brand new science-fiction RPG that blends in isometric map exploration and Visual Novel elements. Serving…

Relaxing strategic sky trading sim 'Merchant of the Skies' leaving Early Access on April 17

Merchant of the Skies has you start small and gradually grow an empire across the skies. It's sweet, it's fun and it's releasing in full on April 17.…

OpenTESArena - a modern game engine for The Elder Scrolls: Arena has a new release

Now available free, The Elder Scrolls: Arena is something of a classic and it continues to live on with thanks to the free and open source game…

Transport Tycoon Deluxe inspired 'OpenTTD' has a massive new release out

Transport Tycoon Deluxe is a classic and OpenTTD is an excellent open source game engine directly inspired by it, with a huge new stable release out…

Prepare your space legs for X4: Split Vendetta and the massive 3.0 free update

Egosoft continue to polish up their ridiculously massive, incredibly ambitious and rather good looking space sim with the release of X4: Split…

NVIDIA have a new Vulkan Beta Driver out for Linux - helping DOOM Eternal on Steam Play

NVIDIA continue to fix up and improve their Linux drivers, with a brand new Vulkan Beta Driver available today. This is the testing area where NVIDIA…

Unique competitive platformer 'Jumpala' adds new stages and it's a huge amount of fun

Jumpala is a very unique competitive platform covered here on GOL recently and I've fallen a little in love with the idea. It's challenging and a lot…

If you want more gore in the GZDoom and Zandronum engines try the 'Bolognese Gore Mod'

The Bolognese Gore Mod is another creation by Brutal Doom’s developer, and it’s advertised as a gore enhancement mod for the GZDoom and…

Save money, buy awesome games and support charity in a big Paradox Interactive sale

Here's another excuse for you to support charity and get some new games, if the Humble Conquer COVID-19 Bundle wasn't enough for you. Paradox…

Add crazy effects to your images with 'PhotoMosh', a powerful but easy to use free web app

I suppose there could be a potential situation where you need to urgently edit an image but don’t have the time, or maybe you want to apply…

'Suits: A Business RPG', a small indie comedy RPG has been updated with better Linux support

Suits: A Business RPG is a mysterious comedy game that was released more than four years ago; from time to time it's being featured as part…

Struggling with regular expressions? Then visit 'Regex Crossword', a site to learn them through a Sudoku-like game

First off, for those readers who aren’t programmers, it’s important to define what are the (in)famous regular expressions. According to…

'Tilesetter' is a program for developers that aims to optimize the tileset generation process; demo available

Judging by the number of followers on their Twitter account and the user reviews on Steam, Tilesetter seems to embody the definition of…

The Humble Conquer COVID-19 Bundle is live with lots of Linux games and all going to charity

The Humble Conquer COVID-19 Bundle has arrived to help in the fight, with tons of games (and lots for Linux) and 100% of the proceeds of this will go…

Fates of Ort is an RPG where time stops until you move - it's absolutely great and it's out now

An RPG that makes things truly tactical, where time stands still until you move - Fates of Ort definitely gives the RPG genre a strange and unique…

Paradox to give players a lot more guidance in Crusader Kings 3 - new overview video

Crusader Kings is a complicated grand strategy series and not particularly accessible to new people. Crusader Kings 3 aims to change that as they've…

Legend of Keepers from Goblinz Studio manages to sell over 33K copies in less than a month

Always nice to see an indie developer doing reasonably well! Goblinz Studio, creator of Legend of Keepers: Career of a Dungeon Master, have announced…

You can build you own bundle of Codemasters racing games over on Humble Bundle

Got the need for speed? Codemasters might possibly be able to help with that, as they have a new bundle over on Humble Bundle where you pick what…

Manage the flow of passengers in 'STATIONflow' - leaving Early Access on April 15

STATIONflow is a game about managing a very busy underground train station that's currently in Early Access with Linux support, which is to…

Imperator: Rome free to play until April 5, plus Archimedes update and Magna Graecia content pack out now

Imperator: Rome from Paradox Interactive and Paradox Development Studio today had a huge update release along with a new DLC content pack and you can…

Valve's revamp of Artifact with a 2.0 Beta will start going out to players sometime soon

Valve recently announced to expect news for their card game Artifact sometime soon, and now they're saying an Artifact 2.0 Beta will start trickling…

Valve makes auto-update adjustments to help with managing Steam's bandwidth use

After multiple streaming services announced they were dropping their quality for a while, to help internet providers cope with so many more at home,…

Get ready to play with renaissance paintings as 'The Procession to Calvary' releases in April

The Procession to Calvary has such a brilliant idea with it bringing Renaissance Paintings to life in a point and click style adventure. I am…