Search Results

Search: Posts Made By: Bopty
3,496
Posted By Bopty
Hi All, Thanks for you help. Here is the...
Hi All,

Thanks for you help. Here is the answer,
ls ${DATA_DIR} | grep "ABC" | while read x; do echo $x; mv ${DATA_DIR}/$x ${ARCHIVE}; done

Thanks,
Bopty :)
3,496
Posted By Bopty
Hi Don, Thanks for you mail. Your...
Hi Don,

Thanks for you mail.

Your confusion is due to typing issue. Let me clearly explain you.

1.) I try to move files from one directory to another, so used a below command,

mv...
3,496
Posted By Bopty
Sorry typing error, its (mv DIR\ABC_*) only. not...
Sorry typing error, its (mv DIR\ABC_*) only. not abc*
3,496
Posted By Bopty
:D its there. If i use this command (i.e....
:D its there.

If i use this command (i.e. mv DIR\abc_*) outside the shell script, its working fine. But not inside ;)
3,496
Posted By Bopty
Tried the same, but still it throwing the error...
Tried the same, but still it throwing the error :(
mv: cannot stat `ABC_*': No such file or directory
3,496
Posted By Bopty
Hi Don, Thanks for your Reply. ...
Hi Don,

Thanks for your Reply.

Instead of # i used * (i.e:###Archive###) here but not in the script.

$DATA_DIR is set to data file path and $ARCHIVE is set to Archive file path. I do...
3,496
Posted By Bopty
'*' not working in shellscript
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...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy