|
Code looks ok..however one minor mistake I noticed maybe that helps
See below see if it works:
#!/bin/sh
src_path=/home/owngdw/abc
tgt_path=/home/owngdw/abc/xyz
if [ ! -d ${tgt_path} ];
then
mkdir -p ${tgt_path}
#mkdir -p abc/xyz
fi
cp ${src_path}/aaa* ${tgt_path}/
If not then let me know the error while executing it.
|