Hi all,
Please can I get some help. I need to copy some files for back up purposes into another directory.
All the files are called "pin.conf".
I can do:
================
#!/usr/bin/ksh
cd /opt/6.5/
for filen in `find . -name pin.conf`
do
echo ${filen}
done
==================
OUTPUT:
./source/apps/ouk_credit_reset/pin.conf
./source/apps/ouk_inact_acc_deletion/pin.conf
./sys/test/pin.conf
./sys/test/user_account/pin.conf
===================
Instead of the echo I wish to copy the file to say ~/tempdir/ with a name like source.apps.ouk_credit_reset.pin.conf (the file name now shows what directory it is originally from and is unique for each pin.conf file).
I can't work out how to change the / to . in the filename??
Does this make sense?
Thanks
LGJ
Please can I get some help. I need to copy some files for back up purposes into another directory.
All the files are called "pin.conf".
I can do:
================
#!/usr/bin/ksh
cd /opt/6.5/
for filen in `find . -name pin.conf`
do
echo ${filen}
done
==================
OUTPUT:
./source/apps/ouk_credit_reset/pin.conf
./source/apps/ouk_inact_acc_deletion/pin.conf
./sys/test/pin.conf
./sys/test/user_account/pin.conf
===================
Instead of the echo I wish to copy the file to say ~/tempdir/ with a name like source.apps.ouk_credit_reset.pin.conf (the file name now shows what directory it is originally from and is unique for each pin.conf file).
I can't work out how to change the / to . in the filename??
Does this make sense?
Thanks
LGJ