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

Zorin OS 9 - a step forward for Windows migrants

 DarkDuck: Zorin OS 9 Core is a decent system, and those who it is aimed for, literally Windows migrants,

Linux / Unix logtop: Realtime Log Line Rate Analyser

 nixcraft: How can I analyze line rate taking log file as input on a Linux system?

Best Linux Desktop: KDE's Plasma

 Datamation: KDE's Plasma earns best Linux desktop honors due to its design, customization and innovation.

Privacy Badger beta released. Install it on Firefox and Chrome

 LinuxBSDos: Privacy Badger is a browser add-on for Firefox and Chrome that's designed to stop advertisers and other third-party trackers from secretly tracking

Cisco Spending "Tens of Millions" on Developers

EnterpriseNetworkingPlanet: DevNet effort aims to succeed where other Cisco developer efforts in the past have failed.

The value of open source is the open development process

 OpenSource.com: Scott Wilson agrees that open source matters because of open code, but just as important is the process in which the code is made.

Debian Linux, Android share a bed in upcoming distro

The Register: A new Linux distribution is looking to overcome the limitations of Debian on ARM, by running both Linux apps and Android apps in native mode.

Great Scott! It's Version 13!

LinuxJournal: No matter how much I love Plex, there's still nothing that comes close to XBMC for usability when it comes to watching your network media on a television.

GCC 5.0 Is Expected Next Year

Phoronix: GNU Compiler Collection developers are beginning to come to a consensus that GCC 5.0 will be released in 2015.

GamingOnLinux.com Latest Articles

OlliOlli Brings Skatboarding And Arcade Fun Together On Linux

Back yonder in the days of yore, I poured hour after hour into my Tony Hawk games on the PS2. It was a catharsis long forgotten until now. Roll7 brings me back a bit with their title OlliOlli: a 2d retro skate-em-up. Unlike the skating games I used to play, OlliOlli drops world exploration for a more arcade-like experience focusing on keeping your combos up and your speed high.

Halfway Turn Based Strategy Released For Linux, It's Good

Halfway is the brand new game from Robotality that promises to be a beautiful space sci-fi turn base strategy. We have a hint for you: It's good.

Star Ruler 2 4X-RTS Released On Steam For Linux

Star Ruler 2 looks like a fantastic space 4X-RTS game currently in Early Access on Steam, and luckily it comes with a Linux build too.

Sokobond, A Puzzle Game Involving Science Released On Steam For Linux

Sokobond is an interesting take on the puzzle genre that involves science, and it looks rather nice.

GOL Cast: Hacking Looters To Pieces In Mount & Blade: Warband

I really like roleplaying games and I'm always on lookout for new RPGs to play, especially if they are native. You can probably imagine how happy I was when I heard that we'd be getting a new one in the form of Mount & Blade: Warband. Well, let's see if it's any good!

The Long Dark A Post-digital Survival Game To Be On Linux At Launch

The Long Dark promises to be an interesting take on the survival game genre with an "original" art style. It does look pretty good, and the final version will be on Linux.

Mother 4 An RPG & Fan-made Sequel To Mother/Earthbound Coming To Linux

Mother 4 is a traditional RPG set in an idealized vintage America, following the adventures of a young boy and the leader of a biker gang, who get caught up in the whirlwind events surrounding a group calling themselves the Modern Men.

Clockwork Empires From Gaslamp Games Should Be On Linux In August

Clockwork Empires is the next game from the developers behind the hit Dungeons of Dredmor, and they are nearing a Linux release!

Duke Nukem 3D: Megaton Edition Has A New Beta Version With Major Improvements

Duke Nukem 3D: Megaton Edition has a brand new beta version out that has some pretty nice improvements, and for Linux gamers they are great.

So Many Me Puzzle Platformer, Our Impressions On Linux

Brand new to Linux is a funny little game called So Many Me. The game is a charming puzzle platformer that has great visuals and a chirpy main character.

Leadwerks Game Developer Toolkit Now Heading To Steam For Linux

The Leadwerks developers have overcome some issues they faced that prevented the Linux version of Leadwerks appearing on Steam.

Towns Building Sim Is Alive Again, Version 14d Released

Towns has a bit of colourful history sadly, but that hasn't stopped a brand new update coming out which is excellent for anyone who picked it up after all that kerfuffle before.

Where Kerbals Fear To Tread, Kerbal Space Program 0.24 Out Now

Budget caps to blow, reputations to ruin and missions to fail have now come to career mode in the fantastic sandbox space simulator from Squad.

Aperture Tag: The Paint Gun Testing Initiative Now On Steam For Linux

A big Portal 2 mod is now for sale on Steam for Linux promising to expand the game rather a lot with new content. Complete with new characters and voice acting.

SteamOS Update 123 Pushed To Alchemist Beta

Valve's SteamOS has been updates again and here's the low down on SteamOS. Now with less reboots needed!