#!/bin/bash CWD="$PWD" HARDLINKED_SFS=puli7.3_x86_64-ungoogled-hardlinked.sfs.extracted #FR_SOURCE=/mnt/+mnt+sda5+test_save+ext2/firstRIB_lego/01firstrib_rootfs.sfs.extracted FR_SOURCE="$CWD"/"$HARDLINKED_SFS"/cont/01firstrib_lego_rootfs MV_LOC="$CWD"/"$HARDLINKED_SFS"/cont/xenial-moved TARGET="$CWD"/"$HARDLINKED_SFS"/cont #Move no longer needed core libs mkdir -p "$HARDLINKED_SFS"/cont/lib/glib23 while read line; do mv $HARDLINKED_SFS/cont/lib/$line $HARDLINKED_SFS/cont/lib/glib23/$line done <