Showing posts with label patterns. Show all posts
Showing posts with label patterns. Show all posts

Thursday, April 8, 2010

srcCp




#!/usr/bin/sh


#DIRs="/uvobs"

echo Start searching files with patterns .............

echo "Starting time: `date`"

SROOT="/uvobs/1btsptf/core"

DIRs="$SROOT/rmt_app $SROOT/oam $SROOT/hdr $SROOT/usl"

for dir in $DIRs

do

echo Searching in $dir ...

find $dir \( -name '*.h' -o -name '*.c' -o -name '*.cpp' -o -name '*.hpp' -o -name '*.cc' -o -name '*.lh' \) -type f -exec cp -f --parents {} . \;

echo `date`

done

echo "Ending time: `date`"

echo Creating tarball ...

tar czf uvobs.tgz uvobs

echo Done! uvobs.tgz created.
 
 
 
Tags: source, Copy, bash, patterns

Labels