#!/bin/bash
#
cd /tmp/script
cfile=` find -name '*.c' `
hfile=` find -name '*.h' `
for fc in $cfile
do
cfname=`basename -s .c $fc`
cat $fc >/tmp/scripttest/$cfname.txt
done
for fh in $hfile
cp $fh /tmp/scripttest