cancel
Showing results for 
Search instead for 
Did you mean: 

Wildcarrd character in file communication channel ( Run OS Command Option )

Former Member
0 Kudos

We have problem while executing the "move ( MV ) " command with wildcard character ( '*' ) in file communication channel (Run Operating System command option ). Command is not executing properly.

e.g. mv /archive/test* /output/

have anyone experienced the same problem ?

Thanks & Regards,

Dijesh Tanna.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181985
Active Contributor
0 Kudos

As far as i know, that doesnt work.

In Unix environment, the below code will work

name=`test*`
target=`xxxfolder`
file_list=`find $name -type f`
for fname in $file_list ; do
    echo "Moving: " $fname
    mv -Eignore $fname $target
done

Edited by: Praveen Gujjeti on Apr 12, 2010 5:44 PM

Edited by: Praveen Gujjeti on Apr 12, 2010 5:46 PM

former_member187339
Active Contributor
0 Kudos

Hi Dijesh,

Is this command working on standalone system? If no then try to make it work there and then in the OS section of the channel.

Also try to use -f option with this command

http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/mv....

Regards

Suraj