Skip to main content

Posts

Showing posts from June, 2009

Find a file inside a zip

Brutally simple shell script I often use to find a class file that I know exists somewhere in a directory tree full of jar files (but generally useful for finding files somewhere in a directory tree of zips): #!/bin/bash for zip in $* do echo $zip for file in $(unzip -Z -1 $zip) do echo "$zip:$file" done …