#!/bin/bash

for i in `cat aarch_rpm`
do
	echo $i
	rpmname=`echo $i | awk -F'/' "{print $NF}"`
	rpmpath=`echo $i | awk -F'/' '{print $(NF-1)}'`
	pathname=`dirname $i`

	if [[ ${rpmpath} == "x86_64" ]]; then grep aarch64  ${rpmname} > /dev/null;if [ $? -eq 0 ];then mv $i $pathname/../aarch64;fi;fi
done
