Posts about 'Command Line'
-
Jun 29, 2014
Easy find
I found myself typing find . -name "*.java" | xargs -iHn "something" so often I decided to make it into a bash script and put it in a new ~/Dropbox/bin folder so...
-
May 26, 2014
Sending notifications from Emacs (Mac OS X)
Sending notifications from emacs is something I find useful. In an earlier blog post I talked about how to use Growl to do so. http://justinsboringpage.blogspot.com/2009/09/making-emacs-growl.htmlWell now you don't need Growl any...
-
Apr 1, 2014
Watch
So this is pretty cool.The watch command (available linux and on Mac via brew) will run a program every n seconds and display the results in a terminal.For example, the...
-
Apr 29, 2012
find grep on Mac OS X
On linux machines I search files using find, egrep and xargs as follows: find . -name "*.cpp" | xargs -i egrep -iHn "some search string" {}this outputs any matches with...
-
Mar 22, 2012
Starting a program to run in the background from a DOS prompt
Picture by ro_buk on FlickrFrom a bash shell you can run a command in the background by adding an "&" to the end of the command, but how do you...
-
Apr 26, 2011
Programmer tips for Mac OSX
Some tips for programmers on the Mac.emacs: the best place to get emacs for Mac seems to be here http://emacsformacosx.com/ which is also the most no nonsense website design everNot...
-
Oct 9, 2009
MSDOS iterating filenames in a file
In an earlier post I covered finding the writable files in a directory, which is something you often need to do when messing around with source control. For example, if...
-
Sep 23, 2009
Windows command window title
Did you know you could change the title in the window of a command prompt using the title command? Example:title Poop ha ha Now that's only really useful for making...
-
Jan 12, 2009
Finding writable files in a directory in a windows command line
Simple thing, but if you want to find which files in a directory are writable, use this dos command ...dir /a-r-d /s /b/a is to search for attributes. In this...
-
May 13, 2008
Batch file tip ... %~dp0
Here's a nice blog post on this...Silly batch file tricks, redirecting stdout into an evironment variable and %~dp0But just for my own reference the cryptic looking character sequence resolves to...