Thursday, December 30, 2010

symbolic link files

Search files in folder and create symbolic link.

#!/bin/bash

ST1=arm-none-linux-gnueabi-
ST2=arm-linux-
for name_old in `ls | grep $ST1`
do
        name_new=`echo $name_old | sed s/$ST1/$ST2/g`
        echo "ln -s $name_old $name_new"
done

No comments:

Post a Comment