View Single Post
Old September 16th, 2013, 03:28 PM   #921 (permalink)
palmtree5
Sunny Vacation Supporter!
 
palmtree5's Avatar
 
Join Date: May 2012
Location: USA
Gender: Male
Posts: 3,720
 
Device(s): HTC One SV, Samsung Galaxy Prevail (retired), Nexus 7 (Gen 1)
Carrier: Boost Mobile

Thanks: 2,416
Thanked 2,197 Times in 1,155 Posts
Default

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]
__________________
Find a post helpful? Hit
See spam or something offensive? Hit
New to the site? Site Rules/Guidelines and Introductions
Not a member yet but want to join? Join here!
Want to chat with staff?Here
Want to chat with mods?Here
palmtree5 is online now  
Reply With Quote