Showing posts with label sed. Show all posts
Showing posts with label sed. Show all posts

Wednesday, June 19, 2013

Clone Cygwin packages.

I've come to depend on having a specific set of cygwin packages installed when working on systems.  The simple way to make sure it has what I expect is to install it.



I set this up to run regularly, which is why the filenames are timestamped.

Credit for inspiration to use /etc/setup/installed.db goes to http://cygwin.com/ml/cygwin/2011-09/msg00079.html

xmission is one of the closest sites, pick the appropriate one for you at http://cygwin.com/mirrors.html

Monday, April 9, 2012

Mult-file rename.

for i in *.avi; do j=`echo $i | sed 's/find/replace/g'`; mv "$i" "$j"; done

From: http://snipplr.com/view/2736/