Articles found under tag: scripting

headimage

Tips on getting (and suggesting, and editing) user input

Posted in Tutorials

By Bob Mesibov

In a previous Linux Rain article I explained how to use the YAD dialog to do multiple-item data entry in a GUI. Here I show one way to allow users to check and edit what they've entered in YAD. I also explain how to offer default, editable inputs in terminal-based data entry, and how to color the…

Read full article
headimage

How to get nowhere in particular

Posted in Tutorials

By Bob Mesibov

In this tutorial I explain one way to generate a random geographical location, using simple command-line tricks. Latitude and longitude: decimal degrees Latitude runs from 0 to 90 degrees from the Equator to the North Pole, and 0 to 90 degrees from the Equator to the South Pole. Longitude in…

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

Linuxtoday.com

VMware Certifies Ubuntu Linux LTS for vCloud Air Cloud Computing

 The VAR Guy: Canonical's Ubuntu Linux operating system is now available as a certified operating system for VMware's vCloud Air enterprise cloud-computing platform.

How to sniff HTTP traffic from the command line on Linux

 xmodulo: Suppose you want to sniff live HTTP web traffic (i.e., HTTP requests and responses) on the wire for some reason.

Linux: Hide Processes From Other Users

 nixcraft: How to stop leaking process information to all users on Linux operating systems?

Linus Torvalds still wants the Linux desktop

 ZDnet: Linux runs everything, everywhere, but Linus Torvalds still wants it to rule on one place it doesn't: The desktop.

The New Stack and Linux Foundation Survey: OpenStack and Docker are The Most Popular Open Source Projects

The New Stack: OpenStack is the most popular open source cloud project, followed by Docker and KVM, according to a survey of more than 550 respondents

Linux distro KaOS 2014.08 is here with KDE 4.14.0

Betanews: The Linux desktop community has reached a sad state.

Munich Council Say Talk of LiMux Demise Is Greatly Exaggerated

OMG Ubuntu: A Munich city council spokesman has attempted to clarify the reasons behind its plan to re-examine the role of open-source software in local government IT systems.

Use These Tools To Change Settings Removed From Ubuntu and GNOME

HowToGeek: GNOME Tweak Tool is packed with useful settings, many of which used to be exposed in GNOME.

Walmart's investment in open source isn't cheap

InfoWorld: While proprietary vendors want us to focus on price, innovators focus on the flexibility and business value of open source

GamingOnLinux.com Latest Articles

The Wine Development Release 1.7.25 Is Now Available.

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

Developers Of The Vanishing Of Ethan Carter Looking Into Linux

One of the developers of a ”next-gen” first-person mystery game The Vanishing of Ethan Carter tweeted out that they are looking into Linux as one of the platforms to release for.

Distance Racing Game Now In Beta

Distance, the successor of Nitronic Rush entered beta and promises some pretty intense survival racing.

Review: Electronic Super Joy A Beat-Bumping Platformer

This week I took a look at Michael Todd's Electronic Super Joy: a fast-paced unforgiving platformer. I missed the initial release last year, and it must be said I was missing out. It's certainly not perfect, but the soundtrack alone may be enough for many of you.

DreadOut Third-Person Horror Game Released On Steam

There's a new game in town for those of you who like to be scared out of your minds by ghosts and supernatural events. And it looks quite terrifying.

GOL World Tour: Gaming From Argentina

The GOL World Tour will start in Argentina and stop off at different countries on a regular basis, looking at Linux developers and their games, throwing in a bit of culture and history too.

Lazors & Asteroids - Early-Access Sci-Fi Game Available On Linux

Lazors & Asteroids is an open world SciFi game, now on Alphafunding on Desura! The game has a chunk of open levels including large-scaled pre-set space battles and procedurally generated wars, along with a Free-Roam mode in which you have to collect items and attack cargo ships to upgrade your ship.

The Steam Controller: Not Everyone Gets It

Something I've noticed about the Steam controller is not very many gamers understand why it has trackpads and why this may be superior in some use cases, so here's a simple breakdown of my thoughts.

Gunpoint Stealth Puzzle Game Has Entered Linux Beta

A Linux beta has been made publicly available for Gunpoint on Steam for those Linux users who love to test and break software.

Pillars Of Eternity Backer Beta Available (Sadly Not For Linux Yet)

Pillars of Eternity now has a backer-beta available, but the Linux (and Mac) versions aren't due for a while yet sadly.

GOL Cast: Tower Defence, FPS Style In Sanctum 2

Sanctum 2 got released officially for Linux after being in beta for quite a while. So, it's our job to show you how well it runs and how good the actual game is. Time to protect some Cores!

A Bird Story RPG To Release On November 5th

In a press release last week the developer of indie hit To the Moon, Freebird Games, revealed that their next game, A Bird Story, will be available for Linux on Steam and GOG, among other distribution platforms.

The Witcher 3 For Linux Remains Officially Unconfirmed

The Witcher 3 for Linux remains officially unconfirmed now even after the front page of Steam itself advertised it as coming to SteamOS.

How To Build A Budget Steam Machine

For those who can't wait for the release of Valve's Steam Machines, this is a guide on how to build your own using parts tested to make sure they play nice together. The guide also doubles up as a cheap PC build for those looking to get the best value for money Linux gaming rig.

A Very Important Announcement For You

Today we have an important announcement to make for you, the GOL community. Before you go reading any further, please remain calm and read the whole article through before making any rushed decisions or leaving comments.