Articles found under tag: bash

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

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

Linuxtoday.com

Viber 4.2 Released - How to Install on Ubuntu Linux

 Linoxide: Viber is a cross-platform instant messaging VoIP application

Top Linux Productivity Apps

 Datamation: Productivity is essential to anyone's day, no matter who you are or where you work

Viewing your processes through the eyes of /proc

 ITworld: The /proc file system brings the processes on your Unix systems into view in some very useful ways, but only if you take the time to cd over to /proc and see all it can tell you.

How to configure Access Control Lists (ACLs) on Linux

 xmodulo: Working with permissions on Linux is rather a simple task.

Is KVM or Docker Faster for Server Virtualization?

ServerWatch: Server and cloud administrators have long had multiple virtualization options to choose from.

As DBMS wars continue, PostgreSQL shows most momentum

HandyLinux 1.6 - What can you do with Debian?

Munich reverses course, may ditch Linux for Microsoft

Xen hypervisor targets automotive virtualization role

 LinuxGizmos: The Xen Project's Embedded and Automotive initiative will bring its hypervisor to a GlobalLogic IVI stack combining a fast-boot Android with Linux or QNX.

GamingOnLinux.com Latest Articles

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.

Cities Skylines, A City Builder Announced From Paradox & It's Coming To Linux

Linux is about to get a pretty deep and serious city builder courtesy of Paradox and Colossal Order named Cities Skylines.

Spellforce 3 Announced For Linux

Thanks to a couple of German news site we have learnt today that Spellforce 3 will be heading to Linux. Not surprising is that our new friends at Nordic Games are the publisher.

Ziggurat, An FPS Dungeon Crawler Now On Linux And It's Good, But With Issues

Ziggurat is a great looking mix of hectic FPS fighting and dungeon crawling, but it has been released with some major issues.

Monsters & Monocles, A Beautiful & Frantic Top Down Shooter

Monsters & Monocles looks absolutely fantastic and they need help on Steam Greenlight in the way of votes. Luckily it will support Linux from day one.

Check Out 20 Minutes Of Footage From The New Unreal Tournament

The new Unreal Tournament is shaping up nicely, and one youtuber has popped up a video of 20 minutes gameplay.

Major Steam Client Update Released

Valve are doing their thing again and pushing out a pretty damn big update to the Steam client with a refreshed look and some nifty new features.

AMD Working Closely With Khronos Group On Next-gen OpenGL, Gives Mantle Access

AMD are working very closely with the Khronos Group for the next generation OpenGL API, and have even given them access to see what makes their own Mantle API tick.

The Witcher 2 Gains Yet Another Performance Beta

I really do have to hand it to Virtual Programming for sticking at it despite harsh feedback from a lot of people. The Witcher 2 has another performance improvement beta release.