Articles found under tag: scripting

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

Multiple-item data entry with YAD

Posted in Tutorials

By Bob Mesibov

YAD (Yet Another Dialog) creates GUI dialogs for data entry, user notification, etc. It was written by Victor Ananjevsky and is described as a fork of Zenity. In fact, it greatly extends Zenity and has a very large number of handy options. Here I explain how to build a multiple-item data entry form…

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

Linuxtoday.com

IBM Enables CalCloud for State of California's Cloud Computing Needs

Datamation: California is heading to the cloud thanks to a new cloud infrastructure effort, built and managed by IBM.

Sharing documents and calendars from ownCloud

Wazi: You can share your ownCloud calendar so that you can sync it between the ownCloud server and Mozilla Thunderbird, OS X/iOS Calendar, and any calendar client that supports CalDAV.

Nginx Plus r4 Improves Web Server Security

eWEEK: The new release of the commercially supported open-source Web server locks down SSL security.

EasyEngine - An Auto Installer Script For Managing WordPress-Nginx Websites On Ubuntu, Debian

 Unixmen: EasyEngine (ee) is a Linux shell-script to install and manage wordpress-nginx websites in one go.

Creating Apache Virtual Hosts with Enable/Disable Vhosts Options in RHEL/CentOS 7.0

 tecmint: Virtual Hosting allows Apache Weberver to serve different content based on IP Address, hostname or used port number.

GOG.com Offers Its First 50 Linux Games

 softpedia: The digital platform GOG.com now offers a number of Linux games and this event marks the entry of this new distribution service into the Linux market.

Photocrumbs is Now Mejiro

 ScribblesAndSnaps: Besides the new name, the current version of the photo publishing script features a handful of improvements and tweaks.

MapR, TCS Partner on Turnkey Hadoop Big Data Analytics

 The VAR Guy: MapR and Tata Consultancy Services have partnered to bring turnkey Big Data analytics and business intelligence solutions based on open source Apache Hadoop to businesses.

SAP supports open source Cloud Foundry and OpenStack for cloud

 ZDnet: SAP has been moving its enterprise suite to the cloud for some time, and now it's embracing the open source cloud.

GamingOnLinux.com Latest Articles

Age Of Wonders III Blog Update On Linux Support

The developers of Age of Wonders III have written a blog post giving us a little bit more of an insight into their porting work.

Among The Sleep Is Now Playable On Linux

Good news everyone! Among The Sleep is now playable on Linux after yesterday's patch which fixed the major graphical glitches for OpenGL.

Trine Enchanted Edition For Linux Delayed, Plus A Short Interview

The Linux release of Frozenbyte's overhaul of Trine to use the Trine 2 engine has slipped behind the Windows version. Read on for a short interview with the developers looking at the "Enchanted Edition", and their thoughts on Linux.

GOG Com Now Officially Support Linux Games

Today marks a big day for Linux and DRM free gaming. GOG.com are now officially supporting Linux on their store, and so that's pretty much all major online stores supporting Linux.

Dungeon Defenders Eternity Released For Linux On Steam

Dungeon Defenders Eternity is a revamp of the original Dungeon Defenders with new features, and cross platform play with mobiles too.

Unrest Adventure RPG Game Released For Linux

Unrest is an adventure RPG that adapts to death, failure, and the choices you make. Play as ordinary people struggling for food, safety, freedom, and a chance at peace. Explore an ancient Indian city using conversation, manipulation and (rarely) violence.

Frozen Endzone Is Now Frozen Cortex & It's Now Out On Linux

Frozen Cortex is the brand new game from Mode 7 who you will remember created Frozen Synapse. Two days ago they added the Linux builds to their new game!

Get CD Projekt RED To Answer Questions About The Witcher 3 For Linux

An interesting opportunity has arisen for Linux gamers to find out if The Witcher 3 is going to come to Linux, and if it's native or not.

Valve Have Another New Design For The Steam Controller

Thanks to the quick tweeting work from SteamDB we now know Valve could be changing their controller yet again.

Interview With Aspyr Media About Civilization V & Linux Gaming

A little treat today folks as I had a chance to talk with Michael Blair from Aspyr Media on a few different bits relating to Linux gaming and their Civilization V port.

Warhammer Eternal Crusade MMO Will Gain A Linux Version

An upcoming MMO in the Warhammer series is set to gain a Linux version thanks to comments made from the lead developer.

Valve Looking For A SteamOS Engineer

Here's your chance to work on something that could change the gaming industry! Valve are looking for a new team member to work on SteamOS.

Terraria Moves Even Closer To A Linux Release

You may remember we did an article recently about the developers of Terraria looking into a Linux port, but it wasn't 100%. Well I think we can call it close too 100% now...

Sandbox Game Maker Coming Soon To Steam

Platinum Arts Sandbox Game Maker is an interesting 3D game engine that is based on Cube2 to allow you to create games easily, and edit them real-time in the game itself.

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.