Search

Search results

A collection of Unix/Linux find command examples

...   Abridged examples Basic find command examples Find directories with the Unix find command ...

Blog - alvin - Jul 29 2014 - 3:46pm - 23 comments

More Linux find command examples

... table of contents   Basic find command examples Using find to search multiple directories ...

Blog - alvin - Jan 25 2014 - 6:26pm - 0 comments

Linux yum command reference (examples)

Summary: A CentOS Linux yum command cheat sheet (reference page). I've been working with the CentOS ... yum update bash Linux system updates To find out which packages on your system have updates available, use this ... Information about an installed yum package To find information about an installed package, use the yum info command. This ...

Blog - alvin - Oct 28 2014 - 5:16pm - 2 comments

Unix/Linux grep command examples

... Case-insensitive file searching with the Unix grep command Reversing the meaning of a grep search Using grep in ... your grep pattern match Power file searching with find and grep Related Unix/Linux grep commands and tutorials ...

Blog - alvin - Jul 29 2014 - 3:45pm - 15 comments

Converting PDF content to plain text with Scala (or Java)

... its limitations. In my Github project you’ll find a shell script to compile the application into a native Mac OS X ... include Jar files in a Scala shell script, (b) how to read command line arguments in a Scala shell script, or (c) how to precompile a ...

Blog - alvin - Nov 17 2014 - 3:26pm - 0 comments

iTunes AppleScript examples (command examples)

... set currentVolume to sound volume end tell This command can be used to decrease the Mac system volume (not the iTunes volume, ... radio script - Play a radio station I couldn't find a great way to play radio stations out of the Radio Stations playlist that ...

Blog - alvin - Nov 3 2014 - 2:58pm - 2 comments

Generating a list of URLs from Apache access log files, sorted by hit count, using Apache Spark (and Scala)

... the REPL. I start the Spark interpreter (REPL) with this command at my *nix command line: $ MASTER=local[4] ... 'bytes' field I used this next expression to find the lines that my Apache access log file parser project wasn’t ... servers. But alas, that will have to wait until I can find some more free time. Until then, if you were looking for an example of how ...

Blog - alvin - Nov 7 2014 - 5:07pm - 0 comments

A Mac Java Applescript example - how to execute Applescript from Java

... program (a Java program that runs an Applescript command). In this case I'm running the Applescript say command, which ... search here for "applescript", and you'll find quite a few, including this Applescript tutorial about an alarm clock ...

Blog - alvin - Nov 5 2014 - 3:50pm - 0 comments

Analyzing Apache access logs with Spark and Scala

... you build Spark on your system with SBT by using this command in your Spark installation directory: $ sbt/sbt assembly ... little methods to work with the data. For instance, to find out how many 404 records are in the access log, I first create this ...

Blog - alvin - Nov 7 2014 - 5:25pm - 0 comments

Using functional programming concepts to make a Scala method better

... extends Logging { /** * Executes the AppleScript command you supply as a String. * Returns `true` on success, `false` ... it will also make methods that have side effects easier to find. As a pitfall, it does require the developer to mark his/her methods ...

Blog - alvin - Nov 6 2014 - 3:46pm - 0 comments