chxo internets RSS

A network of memes,
by Chris Snyder

See also
CHXO Internet
twitter.com/64

Archive

Aug
16th
Thu
permalink

bash for loops vs svn wildcards

Subversion’s copy and move utilities don’t parse wildcards. Specifically, “svn: Client error in parsing arguments.” What to do?

I’ve done a fair amount of bash scripting, but I only just grokked this:

for file in lib/*.php; do svn cp $file lib/v3/.; done

Easy, right?

Credit to this post for reminding me that you don’t always have to use php for this stuff.