View Single Post
Old September 16th, 2013, 04:28 PM   #922 (permalink)
MoodyBlues
- Crazy peacock person -
Thread Author (OP)
 
MoodyBlues's Avatar
 
Join Date: Jan 2011
Location: /home/LosAngeles
Posts: 3,257
 
Device(s): Kindle Fire HD 8.9" (rooted), Motorola Atrix 2, Motorola Atrix 4G (retired), Motorola Bravo (retired
Carrier: AT&T

Thanks: 1,073
Thanked 1,535 Times in 941 Posts
Default

Quote:
Originally Posted by palmtree5 View Post
Got it!

[HIGH]#!/bin/bash
SUBDIR=$1
cd $SUBDIR
for SUBDIR2 in `ls -d1 ./*`
do ZIPFILE=`basename $SUBDIR2`
zip -r $ZIPFILE.zip $SUBDIR2
done
[/HIGH]
Excellent!

There's potential for all sorts of variations. Damn, I love *nix.
__________________


MoodyBlues is offline  
Reply With Quote