Articles found under tag: bash

headimage

Top 10! Fun On The Command Line

Posted in Tutorials

By Bob Mesibov

If you just love making 'top 10'-type lists but are a little embarrassed to say so, tell people you're passionate about data exploration. To impress them even more, explain that you do your data exploration on the command line. But don't ruin the impression by telling them how easy that is! In this…

Read full article
headimage

ODT to TXT, but keep the line numbering

Posted in Tutorials

By Bob Mesibov

The title explains what this article is about. If you save an .odt file as text, or copy/paste the contents as a text file, or run odt2txt or the unoconv utility, you lose the apparent line structure of the original, and with it the line numbering. But there is a way... Losing apparent line…

Read full article
headimage

Scripting a 4-Color Multiple Grepper

Posted in Tutorials

By Bob Mesibov

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 full article
headimage

Tips on Tables

Posted in Tutorials

By Bob Mesibov

Big data or small data, a lot of it comes these days as plain text arranged in rows and columns. Here are a few tips on working with tables of text, both in text editors and on the command line. CSV isn't what it seems. Text tables are often exported from databases and spreadsheets as…

Read full article
headimage

A Pivot Table In AWK

Posted in Tutorials

By Bob Mesibov

GNU AWK is a great tool for working with tables of data, and by using AWK arrays, you can quickly do column sums (and other calculations) based on unique values in another column (see below). Pivot tables in AWK are a bit trickier. In this article I do a slow walk through the code for a simple…

Read full article
headimage

Why I (sometimes) love regular expressions

Posted in Tutorials

By Bob Mesibov

Command line wizards are forever encouraging the rest of us to learn regular expressions (regex). We're told regex is elegant, powerful and incredibly useful. The downside is that regex can be seriously fiddly. One fly-spot out of place, and the code fails. For this reason I only use 'non-simple'…

Read full article
headimage

Scripting a 'Find-and-Replace' for big text files

Posted in Tutorials

By Bob Mesibov

EDIT 26/04/2014 I wrote the original fandr script to do single-word replacements in big files. To do multiple-word find-and-replace, the 'needle' variables have to be double-quoted, as in the revised script below. An example of a multiple-word replacement is at the end of this article. I use two…

Read full article
headimage

Scripting an OCR text archiver for Trove

Posted in Tutorials

By Bob Mesibov

Trove is the National Library of Australia's online database. It contains almost 400 000 000 digital items, including Australian newspaper articles from 1803 to 1954. Trove's newspaper portal is particularly useful. You can view an entire digitised newspaper page, or select (or search for) an…

Read full article
headimage

How to kill blank lines elegantly

Posted in Tutorials

By Bob Mesibov

If you do a Web search for 'linux delete blank lines' you'll find lots of command-line advice. Some of the advice, though, only applies to special cases. Here I explain two elegant and general methods for finding and deleting any blank lines in a text file. As a sample text I'll use the 8-line file…

Read full article
headimage

Building a gazetteer table from KML files

Posted in Tutorials

By Bob Mesibov

Geoscience Australia has a freely downloadable gazetteer of Australian placenames with more than 370 000 entries. The download is a .zip file (83 mb) containing a user guide together with placenames data in GML, KML and Microsoft Access (.mdb) formats. What I wanted from all that data was a simple…

Read full article

Linuxtoday.com

LibreOffice 4.3 Arrives with 30 New Excel Formulas and Support for Microsoft Works Spreadsheets

 softpedia: The Document Foundation has announced that the final version for LibreOffice 4.3 is now available for all platforms

Perl as a career option

 LinuxCareer: Is Perl losing its shine as it now needs to compete with many other alternative programming languages?

'cool-old-term': Retro styled Terminal Emulator for Linux

 techdrivein: We've seen Terminal Emulators of all sizes and shapes for Linux, but nothing like this yet. 'cool-old-term' is one gorgeous looking Terminal emulator.

An unusual comparison of Desktop Environments

 DarkDuck: I created and published a series of videos few months ago, that show how to set up multiple keyboard layouts in different Desktop Environments. Statistics of the views is quite interesting.

GCC wins lifetime achievement award - and takes heat from Linus Torvalds

 ITworld: The GNU Compiler Collection, better known as GCC, was recently awarded the ACM's Programming Languages Software Award for 2014.

Tiny Raspberry Pi-compatible SBC targets wearables

 Linux Gizmos: Hardkernel launched a $30 Raspberry-Pi compatible "Odroid-W" wearables oriented SBC

Can Android be made truly free and open source?

 ITworld: If you don't really care about FOSS then Google owning Android isn't a problem at all.

Samsung's Tizen smartphone OS: Dead or alive?

 ZDnet: Does Tizen have a future, or is it going to be another unlaunched Linux-based mobile operating system?

Mine Bitcoins with Raspberry Pi

LinuxUser: Jump on the cryptocurrency bandwagon and mine some of your own Bitcoins – or other currency – with a spare Raspberry Pi

GamingOnLinux.com Latest Articles

Two Tribes Brand New Platform Shooter RIVE Comng To Linux

After going through some changes the refreshed Two Tribes team got to work on a brand new game called RIVE. The game looks beautiful and it's heading to Linux.

Watch The Unreal Tournament Developers Play Team Deathmatch

The crew from Epic Games are at it again. We have now been teased to a video showing the Unreal Tournament crew playing Team Deathmatch in the brand new game.

Pulstar Twin Stick Shooter Released On Steam For Linux

Pulstar has been updated on Steam to add a Linux version! Pulstar is a fast paced arcade game that brings back the basic of its genre, and it sure is vibrant.

Stronghold 3 Gold Looks Closer To A Linux Version

We already gave you confirmation that Stronghold 3 Gold was heaving to Linux, but in the past week it seems there has been more progress.

Space Pirates And Zombies Now On GOG DRM Free For Linux

You can now grab Space Pirates and Zombies DRM free from GOG.com as they build up their game collection.

Only If Free Adventure Game Released On Steam For Linux

Only If is a surreal first person adventure-puzzle game. You play as Anthony Clyde, who, after a heavy night of partying, wakes up to find himself in an unfamiliar bed with no memory of the previous night's events.

GOL Cast: Metal Music And Zombie Apocalypse In Rock Zombie

If you've played Left 4 Dead 2, then you might have had the chance to smash zombies with a guitar. However, if you haven't then here's a game that focuses exactly on that. Cue the music and let's go kill a horde or two.

Sales Statistics From Developers Part 3

Here we are again! I know how much people enjoy statistics (snore!), but when it comes to Linux and how well games perform on it we all need to see.

Street Arena, A Top Down Action Game Much Like Early GTA Games

Street Arena is the re-branded version of "Greedy Car Thieves" which is a promising looking top down action game involving cars, and it looks a lot like the early Grand Theft Auto games.

Bik, A 2D Point & Click Adventure In Space

Bik is quite an interesting looking point & click adventure, and it's available for Linux. We check it out and let you know how it plays.

Gods Will Be Watching Now Out For Linux, And It's Hard

Gods Will Be Watching is a game that is quite hard to describe, and it's bloody hard as well. It's a pixel art point and click adventure game where you need to be quite brutal.

Darkwood Arrives To Scare Linux Gamers

Darkwood is an interesting take on the horror and survival genre with a top down perspective and a really dark setting.

The Incredible Adventures Of Van Helsing 1 Is In Closed Beta On Linux

It was already reported that The Incredible Adventures Of Van Helsing is coming to Linux a while ago. I can now confirm that the first game is in closed beta on Linux right now. Even though the game is in early beta and is quite rough around the edges, it looks great and is mostly playable.

The Wine Development Release 1.7.23 Is Now Available.

Wine development team was able to produce a new experimental release today. 1.7.23 bringing many new features and as many as 42 bugfixes.

Feral Interactive Are Teasing New Linux Games UPDATED

Feral Interactive are little devils as they sent out a link earlier to a teaser page of new ports for Mac & Linux, but what ones will be on Linux?