July 2017
M T W T F S S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Spec Folder

shell scripting (not able to include 2 folders in zip file)?

hello all,

below is the script i am using

# TP LOGS:
# - TLA/*/specs/*
# - TLA/*/conf/*
# - TLA/*/cam/*
TESTPRO="${TLATXT}_testprocedure.zip"
echo -n "- Creating "$TESTPRO": "
echo "Creating "$TESTPRO": " >>"$LOGFILE"
cd "$RTT_TESTCONTEXT" || exit 1
rm -f "$ARCHIVEDIR/$TESTPRO" || exit 1
$ZIP -r "$ARCHIVEDIR/$TESTPRO" "$TLADIR"/*/specs >>"$LOGFILE"
echo "OK"

in command : $ZIP -r "$ARCHIVEDIR/$TESTPRO" "$TLADIR"/*/specs >>"$LOGFILE"

here TLADIR = vcs (a directory name)

vcs containg 3 folders
1. specs
2. conf
3. cam
4. stubs
5.src

with the help of above given script i am able to zip only specs folder inside vcs,
i want "conf ,cam and specs " these 3 directories should come under vcs.zip file.
please suggest script for it

Change "$TLADIR"/*/specs to "$TLADIR"/*/{specs,conf,cam}

Find Spec Folder On eBay Below:



Recently Purchased Spec Folder:






Comments are closed.