Monday, February 18, 2013

Shell Script Copy all .C file from one location to Another


#!/bin/bash

file_list=`find ./abc/test -name "*.c"`
for file_n in $file_list
do
    cp $file_n $targetdir/$file_n
done


No comments:

Post a Comment