Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue in Unix Shell script

BoptyJan 3 2013 — edited Jan 18 2013
Hi,

To Archive files, I try to move files from one directory to another directory . So i used the below logic,

*#!/bin/ksh*

*****Archive*****

*mv ${DATA_DIR}/ABC_*.dat ${ARCHIVE}*

So if i give the complete file name its working fine. But if i use '*', im getting the below error,

mv: cannot stat `PATH`: : No such file or directory

Please help me in this.


Thanks,
Bopty

Edited by: Bopty on Jan 3, 2013 11:39 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2013
Added on Jan 3 2013
20 comments
818 views