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 - May 7 2015 - 5:04pm - 23 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 - May 4 2015 - 1:54am - 15 comments

LaTeX examples - reference a figure or table

... commands must match the text used within the label command. (It seems to be a convention to begin this text with the string ... Thank you. Reference a Figure Hello, I've used a command \ref{fig:} to reference my figures, but I don't receive the same ... of the table number itself. I am actually trying to find a way of correcting the problem when i came upon this thread. Hope ...

Blog - alvin - May 5 2015 - 4:55pm - 38 comments

A Git cheat sheet (Git command reference)

... Summary: This is a Git cheat sheet (Git command summary) I've created, featuring many Git command examples. As ... opens an editor --get-color <slot> find the color configured: [default] --get-colorbool <slot> ...

Blog - alvin - Jul 29 2015 - 10:35pm - 0 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

Scala: How to run an external command (process) in a different directory

... short recipe, Recipe 12.18, “How to run an external command (process) in a different directory.” Problem You want to ... , which I wrote for O’Reilly: You can find the Scala Cookbook at these locations: Here on the O’Reilly ...

Blog - alvin - Jun 19 2015 - 5:26pm - 0 comments

Scala: How to handle the STDOUT and STDERR of external commands

... Problem You want to run an external command and get access to both its STDOUT and STDERR. Solution The ... and STDERR on a Unix system: val status = Seq("find", "/usr", "-name", "make") ! ... and STDERR output: scala> val status = Seq("find", "/usr", "-name", "make") ! ...

Blog - alvin - Jun 19 2015 - 5:20pm - 0 comments

How to paste and load blocks of code in the Scala REPL

... can fail. To solve the problem, either use the :paste command to paste blocks of code into the REPL, or use the :load command to ... , which I wrote for O’Reilly: You can find the Scala Cookbook at these locations: Here on the O’Reilly ...

Blog - alvin - Jun 20 2015 - 10:10pm - 0 comments

How to execute external commands and use their STDOUT in Scala

... Scala.” Problem You want to run an external command and then use the standard output (STDOUT) from that process in your ... following code segment shows how to run a complex Unix find command: val dir = "/Users/Al/tmp" val searchTerm = ...

Blog - alvin - Jun 19 2015 - 5:19pm - 0 comments

How to execute external system commands in Scala

... Problem You want to execute an external (system) command from within a Scala application. You’re not concerned about the ... a large amount of output: val process = Process("find / -print").lines The variable process in this example is a ...

Blog - alvin - Jun 19 2015 - 5:16pm - 0 comments